summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-31 02:51:47 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-31 02:51:47 +0200
commit9feb3739a1a28d3465fe986d916b01ca236327bf (patch)
tree7c6d4fd8ccec0c34461dac8626e450a319790d73 /bin/reproducible_build.sh
parentb63322cd340908ae9ea472c0d0c74db565ccba24 (diff)
downloadjenkins.debian.net-9feb3739a1a28d3465fe986d916b01ca236327bf.tar.xz
reproducible: no better idea atm than to define it twice
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index af455d6d..598aaba6 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -588,6 +588,8 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then
TMPDIR="$4"
[ -d $TMPDIR ] || mkdir -p $TMPDIR
cd $TMPDIR
+ # used to catch race conditions when the same package is being built by two parallel jobs
+ LOCKFILE="/tmp/reproducible-lockfile-${SUITE}-${ARCH}-${SRCPACKAGE}"
get_source_package
mkdir b$MODE
if [ "$MODE" = "1" ] ; then