From 1f87a0e90d3aa66a4cde02d169c641dfdfee528d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 24 Sep 2014 01:30:24 +0200 Subject: reproducible: misc improvements --- bin/reproducible_build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2