summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh11
1 files changed, 5 insertions, 6 deletions
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