summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-07 19:36:41 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-18 18:03:00 +0200
commit2b0e38bbaea82bb0c19486810a7e13a36fe6c615 (patch)
tree742466fe6ed7eb8dd572c98e61b95e18391ead25 /bin/reproducible_build.sh
parent8aab55cc86193b2d8c45707ce86d7cc147b94cc6 (diff)
downloadjenkins.debian.net-2b0e38bbaea82bb0c19486810a7e13a36fe6c615.tar.xz
reproducible: build: refactor: really can't define a variable before knowing what to put into it
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index b4628019..5fc21698 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -380,14 +380,13 @@ RBUILDLOG=$(mktemp --tmpdir=$TMPDIR) # FIXME check wheter my changes here are fi
choose_package # defines SUITE, PKGID, SRCPACKAGE, SCHEDULED_DATE, SAVE_ARTIFACTS
-DBDREPORT=$(echo ${SRCPACKAGE}_${EVERSION}.debbindiff.html)
-BUILDINFO=${SRCPACKAGE}_${EVERSION}_${ARCH}.buildinfo
-
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"
+BUILDINFO="${SRCPACKAGE}_${EVERSION}_${ARCH}.buildinfo"
cat ${SRCPACKAGE}_${EVERSION}.dsc | tee -a ${RBUILDLOG}