[Qa-jenkins-scm] [jenkins.debian.net] 01/01: refactor

Holger Levsen holger at moszumanska.debian.org
Sat Nov 14 14:47:23 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 9e19a972040d7992dd9da2ed1eb33a29619fb76f
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Nov 14 15:47:15 2015 +0100

    refactor
---
 bin/schroot-create.sh | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index c8a5c79..d777f37 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list