summaryrefslogtreecommitdiffstats
path: root/bin/schroot-create.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/schroot-create.sh')
-rwxr-xr-xbin/schroot-create.sh17
1 files changed, 11 insertions, 6 deletions
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index c8a5c792..d777f374 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -21,13 +21,24 @@ if [ $# -lt 2 ]; then
exit 1
fi
+# initialize vars
declare -a EXTRA_SOURCES
+for i in $(seq 0 5) ; do
+ EXTRA_SOURCES[$i]=""
+done
+
if [ "$1" = "backports" ] ; then
EXTRA_SOURCES[2]="deb $MIRROR ${SUITE}-backports main"
EXTRA_SOURCES[3]="deb-src $MIRROR ${SUITE}-backports main"
shift
fi
+if [ "$1" = "torbrowser-launcher" ] ; then
+ EXTRA_SOURCES[4]="deb $MIRROR ${SUITE} contrib"
+ EXTRA_SOURCES[5]="deb-src $MIRROR ${SUITE} contrib"
+ shift
+fi
+
if [ "$1" = "reproducible" ] ; then
EXTRA_SOURCES[4]="deb http://reproducible.alioth.debian.org/debian/ ./"
EXTRA_SOURCES[5]="deb-src http://reproducible.alioth.debian.org/debian/ ./"
@@ -35,12 +46,6 @@ if [ "$1" = "reproducible" ] ; then
shift
fi
-if [ "$1" = "torbrowser-launcher" ] ; then
- EXTRA_SOURCES[4]="deb $MIRROR ${SUITE} contrib"
- EXTRA_SOURCES[5]="deb-src $MIRROR ${SUITE} contrib"
- shift
-fi
-
TARGET="$1"
shift