From a095949450fff922e84377d19a14d3fac4062316 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 30 Aug 2015 21:34:59 +0200 Subject: reproducible: refactor, so that $EVERSION is always defined when building --- bin/reproducible_build.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'bin/reproducible_build.sh') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 107f3fa7..3f01912f 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -410,6 +410,11 @@ get_source_package() { exit 404 # FIXME: this is unhandled atm fi fi + VERSION="$(grep '^Version: ' ${SRCPACKAGE}_*.dsc| head -1 | egrep -v '(GnuPG v|GnuPG/MacGPG2)' | cut -d ' ' -f2-)" + EVERSION="$(echo $VERSION | cut -d ':' -f2)" # EPOCH_FREE_VERSION was too long + DBDREPORT="${SRCPACKAGE}_${EVERSION}.debbindiff.html" + DBDTXT="${SRCPACKAGE}_${EVERSION}.debbindiff.txt" + BUILDINFO="${SRCPACKAGE}_${EVERSION}_${ARCH}.buildinfo" } check_suitability() { @@ -607,12 +612,6 @@ LOCKFILE="/tmp/reproducible-lockfile-${SUITE}-${ARCH}-${SRCPACKAGE}" init get_source_package -VERSION="$(grep '^Version: ' ${SRCPACKAGE}_*.dsc| head -1 | egrep -v '(GnuPG v|GnuPG/MacGPG2)' | cut -d ' ' -f2-)" -EVERSION="$(echo $VERSION | cut -d ':' -f2)" # EPOCH_FREE_VERSION was too long -DBDREPORT="${SRCPACKAGE}_${EVERSION}.debbindiff.html" -DBDTXT="${SRCPACKAGE}_${EVERSION}.debbindiff.txt" -BUILDINFO="${SRCPACKAGE}_${EVERSION}_${ARCH}.buildinfo" - cat ${SRCPACKAGE}_${EVERSION}.dsc | tee -a ${RBUILDLOG} check_for_race_conditions -- cgit v1.2.3-54-g00ecf