summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-05 16:08:09 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-05 16:08:09 +0200
commite41825cae0ad219dd99082771f35dad4caf3ad62 (patch)
treed5c556fcc965a1b35206723f43e95dd833ab29a0
parent1dea5810ff5e43d8008b69ca75efa59ea960d0d8 (diff)
downloadjenkins.debian.net-e41825cae0ad219dd99082771f35dad4caf3ad62.tar.xz
reproducible: use epoch free version earlier
-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 565c3177..c023b545 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -147,6 +147,8 @@ for SRCPACKAGE in ${PACKAGES} ; do
continue
else
VERSION=$(grep "^Version: " ${SRCPACKAGE}_*.dsc| grep -v "GnuPG v" | sort -r | head -1 | cut -d " " -f2-)
+ # EPOCH_FREE_VERSION was too long
+ EVERSION=$(echo $VERSION | cut -d ":" -f2)
TMPLOG=$(mktemp)
mv ${RBUILDLOG} ${TMPLOG}
RBUILDLOG=/var/lib/jenkins/userContent/rbuild/${SRCPACKAGE}_${EVERSION}.rbuild.log
@@ -160,8 +162,6 @@ for SRCPACKAGE in ${PACKAGES} ; do
continue
move_rbuildlog
fi
- # EPOCH_FREE_VERSION was too long
- EVERSION=$(echo $VERSION | cut -d ":" -f2)
sudo DEB_BUILD_OPTIONS="parallel=$NUM_CPU" pbuilder --build --debbuildopts "-b" --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_*.dsc | tee ${SRCPACKAGE}_${EVERSION}.pbuilder.log
cat ${SRCPACKAGE}_${EVERSION}.pbuilder.log >> ${RBUILDLOG}
if [ -f /var/cache/pbuilder/result/${SRCPACKAGE}_${EVERSION}_amd64.changes ] ; then