summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-02-28 01:43:00 +0100
committerHolger Levsen <holger@layer-acht.org>2016-02-28 01:43:00 +0100
commite6fa9d12fd6af57a17a15b53ef7205903075244b (patch)
treefabc79997972f3ec7ff39c295ba1a307c488df70
parent24ef3db14df5a6a96ba2bd72d5c171a2ba7618f1 (diff)
downloadjenkins.debian.net-e6fa9d12fd6af57a17a15b53ef7205903075244b.tar.xz
schroot-create: use security updates too (thanks to torbrowser tests breaking on february 21st 2016…)
-rwxr-xr-xbin/schroot-create.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index d5c7437e..4a7ee9d1 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -23,7 +23,7 @@ fi
# initialize vars
declare -a EXTRA_SOURCES
-for i in $(seq 0 5) ; do
+for i in $(seq 0 7) ; do
EXTRA_SOURCES[$i]=""
done
CONTRIB=""
@@ -59,6 +59,9 @@ if [ "$SUITE" = "experimental" ] ; then
SUITE=sid
EXTRA_SOURCES[0]="deb $MIRROR experimental main $CONTRIB"
EXTRA_SOURCES[1]="deb-src $MIRROR experimental main $CONTRIB"
+elif [ "$SUITE" != "unstable" ] ; then
+ EXTRA_SOURCES[6]="deb security.debian.org $SUITE/updates main $CONTRIB"
+ EXTRA_SOURCES[6]="deb-src security.debian.org $SUITE/updates main $CONTRIB"
fi
export SCHROOT_TARGET=$(mktemp -d -p $SCHROOT_BASE/ schroot-install-$TARGET-XXXX)
@@ -148,7 +151,7 @@ bootstrap() {
echo "# generated by $BUILD_URL" | sudo tee $SCHROOT_TARGET/etc/apt/sources.list > /dev/null
echo "deb $MIRROR $SUITE main $CONTRIB" | sudo tee -a $SCHROOT_TARGET/etc/apt/sources.list > /dev/null
echo "deb-src $MIRROR $SUITE main $CONTRIB" | sudo tee -a $SCHROOT_TARGET/etc/apt/sources.list > /dev/null
- for i in $(seq 0 5) ; do
+ for i in $(seq 0 7) ; do
[ -z "${EXTRA_SOURCES[$i]}" ] || echo "${EXTRA_SOURCES[$i]}" | sudo tee -a $SCHROOT_TARGET/etc/apt/sources.list >/dev/null
done