summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-31 00:24:12 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-31 00:24:12 +0200
commit5278e779cb60cfef20aa8be36e3b0d5069bc2101 (patch)
tree2c4120c5e1cf91a7de47edda81b536d7265b6e2b
parent63eb3ea3fb01a03cb5b86af3e398aa83859c30fb (diff)
downloadjenkins.debian.net-5278e779cb60cfef20aa8be36e3b0d5069bc2101.tar.xz
reproducible: make more robust
-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 ec78a04a..cfd9e57a 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -415,6 +415,8 @@ get_source_package() {
DBDREPORT="${SRCPACKAGE}_${EVERSION}.debbindiff.html"
DBDTXT="${SRCPACKAGE}_${EVERSION}.debbindiff.txt"
BUILDINFO="${SRCPACKAGE}_${EVERSION}_${ARCH}.buildinfo"
+ # used to catch race conditions when the same package is being built by two parallel jobs
+ LOCKFILE="/tmp/reproducible-lockfile-${SUITE}-${ARCH}-${SRCPACKAGE}"
}
check_suitability() {
@@ -619,9 +621,6 @@ fi
choose_package # defines SUITE, PKGID, SRCPACKAGE, SCHEDULED_DATE, SAVE_ARTIFACTS, NOTIFY
-# used to catch race conditions when the same package is being built by two parallel jobs
-LOCKFILE="/tmp/reproducible-lockfile-${SUITE}-${ARCH}-${SRCPACKAGE}"
-
init
get_source_package