[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: fixup: make get_source_package() more robust

Holger Levsen holger at moszumanska.debian.org
Sat May 23 09:41:41 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 1b9956c6ea927ed16c1eecccc3bc3a5c6578e7ce
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat May 23 11:41:38 2015 +0200

    reproducible: fixup: make get_source_package() more robust
---
 bin/reproducible_build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 4962c3c..0ce7ce2 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -355,7 +355,7 @@ get_source_package() {
 	local RESULT
 	schroot --directory $PWD -c source:jenkins-reproducible-$SUITE apt-get -- --download-only --only-source source ${SRCPACKAGE} 2>&1 | tee -a ${RBUILDLOG}
 	RESULT=$?
-	if [ $RESULT != 0 ] || [ ! $(ls ${SRCPACKAGE}_*.dsc > /dev/null) ] ; then
+	if [ $RESULT != 0 ] || [ ! test $(ls ${SRCPACKAGE}_*.dsc 2>&1 /dev/null) ] ; then
 		# sometimes apt-get cannot download a package for whatever reason.
 		# if so, wait some time and try again. only if that fails, give up.
 		echo "Download of ${SRCPACKAGE} sources from ${SUITE} failed." | tee -a ${RBUILDLOG}
@@ -365,7 +365,7 @@ get_source_package() {
 		schroot --directory $PWD -c source:jenkins-reproducible-$SUITE apt-get -- --download-only --only-source source ${SRCPACKAGE} 2>&1 | tee -a ${RBUILDLOG}
 		RESULT=$?
 	fi
-	if [ $RESULT != 0 ] || [ ! $(ls ${SRCPACKAGE}_*.dsc > /dev/null) ] ; then
+	if [ $RESULT != 0 ] || [ ! test $(ls ${SRCPACKAGE}_*.dsc 2>&1 /dev/null) ] ; then
 		handle_404
 	fi
 }

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