summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-29 17:01:23 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-29 17:01:23 +0200
commit2194eb2756ee57e0b43bd0acdda6f7eb9aea3818 (patch)
treed30eef585564d04cc1f47e177b910af307b40ce4 /bin
parentab5f0b4b6dba6c0b9af6a5eddafe5e316344d95d (diff)
downloadjenkins.debian.net-2194eb2756ee57e0b43bd0acdda6f7eb9aea3818.tar.xz
reproducible: cleanup properly
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index da6e4fa8..39b3da85 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -109,7 +109,6 @@ for SRCPACKAGE in $PACKAGES ; do
continue
fi
sudo DEB_BUILD_OPTIONS="parallel=$NUM_CPU" pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_*.dsc | tee ${SRCPACKAGE}_${VERSION}.pbuilder.log
- RESULT=$?
if [ -f /var/cache/pbuilder/result/${SRCPACKAGE}_${VERSION}_amd64.changes ] ; then
mkdir b1 b2
dcmd cp /var/cache/pbuilder/result/${SRCPACKAGE}_${VERSION}_amd64.changes b1
@@ -146,11 +145,8 @@ for SRCPACKAGE in $PACKAGES ; do
else
sqlite3 -init $INIT $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"FTBFS\", \"$DATE\", \"\")"
mv ${SRCPACKAGE}_${VERSION}.pbuilder.log /var/lib/jenkins/userContent/pbuilder/
-
+ dcmd rm ${SRCPACKAGE}_${VERSION}.dsc
fi
- dcmd rm ${SRCPACKAGE}_${VERSION}.dsc
- sudo rm -fv /var/cache/pbuilder/result/${SRCPACKAGE}_* 2>/dev/null
-
fi
set +x