summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-24 01:30:24 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-24 01:30:24 +0200
commit1f87a0e90d3aa66a4cde02d169c641dfdfee528d (patch)
tree6cfc478a0613eb5d46c942785b70932dab31605a /bin
parente1fd6ec9efb772a3d9e8d7fd87e3e2827f715d84 (diff)
downloadjenkins.debian.net-1f87a0e90d3aa66a4cde02d169c641dfdfee528d.tar.xz
reproducible: misc improvements
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 4e2e4bd2..c5e76e68 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -23,7 +23,9 @@ for SRCPACKAGE in "$@" ; do
let "COUNT_TOTAL=COUNT_TOTAL+1"
rm b1 b2 -rf
apt-get source --download-only ${SRCPACKAGE} || true
- if $(sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${SRCPACKAGE}_*.dsc) ; then
+ RESULT=0
+ sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${SRCPACKAGE}_*.dsc || RESULT=$? || true
+ if [ $RESULT = 0 ] ; then
mkdir b1 b2
dcmd cp /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes b1
sudo dcmd rm /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes
@@ -47,9 +49,11 @@ for SRCPACKAGE in "$@" ; do
rm b1 b2 ${TMPFILE} -rf
fi
+ set +x
echo "=============================================================="
echo "$COUNT_TOTAL of ${#@} done."
echo "=============================================================="
+ set -x
done
set +x