summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-24 09:34:42 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-24 09:34:42 +0200
commit809c6682d04a23b0fe886c6986b708483ae54912 (patch)
treed3c8a5a4ec1b6c0be30559b9aca28119a1382174 /bin
parent9210b95e1555dd02433294d6ebd1360cfc1e0058 (diff)
downloadjenkins.debian.net-809c6682d04a23b0fe886c6986b708483ae54912.tar.xz
reproducible: fixup: make get_source_package() more robust
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 89872a0f..c9cb1e2d 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -357,7 +357,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 ] || [ ! test $(ls ${SRCPACKAGE}_*.dsc 2>&1 /dev/null) ] ; then
+ if [ $RESULT != 0 ] || [ "$(ls ${SRCPACKAGE}_*.dsc 2> /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}
@@ -367,7 +367,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 ] || [ ! test $(ls ${SRCPACKAGE}_*.dsc 2>&1 /dev/null) ] ; then
+ if [ $RESULT != 0 ] || [ "$(ls ${SRCPACKAGE}_*.dsc 2> /dev/null)" = "" ] ; then
handle_404
fi
}