summaryrefslogtreecommitdiffstats
path: root/bin/schroot-create.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-02-26 20:30:15 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-26 20:30:15 +0100
commit4f7003859c69f35ca1669442badf26e930a1e3ad (patch)
treeb9e10b1c4b69e74b799fb22416fd6faae4ce9200 /bin/schroot-create.sh
parentf232afccd9dd7b6486b047a9842de39ef25d201c (diff)
downloadjenkins.debian.net-4f7003859c69f35ca1669442badf26e930a1e3ad.tar.xz
reproducible: create two new schroots, reproducible-(sid|experimental) for the builders to run 'apt-get source' within
Diffstat (limited to 'bin/schroot-create.sh')
-rwxr-xr-xbin/schroot-create.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index 5e7d8588..9de123ff 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -25,9 +25,12 @@ DISTRO="$1"
shift
if [ "$1" == "backports" ] ; then
- BACKPORTS="deb $MIRROR ${DISTRO}-backports main"
- BACKPORTSSRC="deb-src $MIRROR ${DISTRO}-backports main"
+ EXTRA_PACKAGES="deb $MIRROR ${DISTRO}-backports main"
+ EXTRA_SOURCES="deb-src $MIRROR ${DISTRO}-backports main"
shift
+elif [ "$1" == "reproducible" ] ; then
+ EXTRA_PACKAGES="deb http://reproducible.alioth.debian.org/debian/ ./"
+ EXTRA_SOURCES="deb-src http://reproducible.alioth.debian.org/debian/ ./"
fi
if [ ! -d "$CHROOT_BASE" ]; then
@@ -52,8 +55,8 @@ bootstrap() {
sudo chmod +x $CHROOT_TARGET/usr/sbin/policy-rc.d
echo "Acquire::http::Proxy \"$http_proxy\";" | sudo tee $CHROOT_TARGET/etc/apt/apt.conf.d/80proxy >/dev/null
echo "deb-src $MIRROR $DISTRO main" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list > /dev/null
- echo "${BACKPORTS}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null
- echo "${BACKPORTSSRC}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null
+ echo "${EXTRA_PACKAGES}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null
+ echo "${EXTRA_SOURCES}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null
sudo chroot $CHROOT_TARGET apt-get update
if [ -n "$1" ] ; then