diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/schroot-create.sh | 7 |
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 |