[Qa-jenkins-scm] [jenkins.debian.net] 02/04: schroot-create: fix parameters checking: first check for reproducible/backports, then parse suite/target

Holger Levsen holger at moszumanska.debian.org
Sun Jun 14 16:04:19 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 bc41913bc4933a8cebd06c17973b44999de59e94
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sun Jun 14 17:15:16 2015 +0200

    schroot-create: fix parameters checking: first check for reproducible/backports, then parse suite/target
---
 bin/schroot-create.sh | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index 8607c18..bd04fbd 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -21,19 +21,6 @@ if [ $# -lt 2 ]; then
 	exit 1
 fi
 
-TARGET="$1"
-shift
-SUITE="$1"
-shift
-
-declare -a EXTRA_SOURCES
-if [ "$SUITE" = "experimental" ] ; then
-	# experimental cannot be bootstrapped
-	SUITE=sid
-	EXTRA_SOURCES[0]="deb $MIRROR experimental main"
-	EXTRA_SOURCES[1]="deb-src $MIRROR experimental main"
-fi
-
 if [ "$1" = "backports" ] ; then
 	EXTRA_SOURCES[2]="deb $MIRROR ${SUITE}-backports main"
 	EXTRA_SOURCES[3]="deb-src $MIRROR ${SUITE}-backports main"
@@ -47,6 +34,19 @@ if [ "$1" = "reproducible" ] ; then
 	shift
 fi
 
+TARGET="$1"
+shift
+SUITE="$1"
+shift
+
+declare -a EXTRA_SOURCES
+if [ "$SUITE" = "experimental" ] ; then
+	# experimental cannot be bootstrapped
+	SUITE=sid
+	EXTRA_SOURCES[0]="deb $MIRROR experimental main"
+	EXTRA_SOURCES[1]="deb-src $MIRROR experimental main"
+fi
+
 if [ ! -d "$CHROOT_BASE" ]; then
 	echo "Directory $CHROOT_BASE does not exist, aborting."
 	exit 1

-- 
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