summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-23 11:41:38 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-23 11:41:38 +0200
commit1b9956c6ea927ed16c1eecccc3bc3a5c6578e7ce (patch)
treee792c786e1314d4553fdc202785d59101f29debc /bin/reproducible_build.sh
parente4288934c4e3b734468c9112f5692a7d502f2230 (diff)
downloadjenkins.debian.net-1b9956c6ea927ed16c1eecccc3bc3a5c6578e7ce.tar.xz
reproducible: fixup: make get_source_package() more robust
Diffstat (limited to 'bin/reproducible_build.sh')
-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 4962c3c2..0ce7ce24 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
}