[Qa-jenkins-scm] [jenkins.debian.net] 01/01: fixup a8882f2d: reproducible: be more verbose when trying to replace schroots

Holger Levsen holger at moszumanska.debian.org
Fri Sep 18 11:10:20 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 0ebae8e2cf909d4a3242b2aee932a8b476137f6a
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Sep 18 13:10:10 2015 +0200

    fixup a8882f2d: reproducible: be more verbose when trying to replace schroots
---
 bin/schroot-create.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index 03dd2d7..0f666ab 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -218,8 +218,8 @@ then
 	echo "$(date -u ) - $SCHROOT_BASE/$TARGET exists, moving it away to $SCHROOT_BASE/$TARGET-$rand"
 	set +e
 	sudo mv $SCHROOT_BASE/"$TARGET" $SCHROOT_BASE/"$TARGET"-"$rand"
-	set -e
 	RESULT=$?
+	set -e
 	if [ $RESULT -ne 0 ] ; then
 		echo
 		ls -R $SCHROOT_BASE/"$TARGET"
@@ -232,8 +232,8 @@ cleanup_schroot_sessions
 echo "$(date -u ) - renaming $CHROOT_TARGET to $SCHROOT_BASE/$TARGET"
 set +e
 sudo mv $CHROOT_TARGET $SCHROOT_BASE/"$TARGET"
-set -e
 RESULT=$?
+set -e
 if [ $RESULT -ne 0 ] ; then
 	echo
 	ls -R $SCHROOT_TARGET

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