summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_setup_schroot.sh
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-06-08 02:53:49 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-08 09:00:55 +0200
commit3092f9f22cf6b2a1d7ac2dc40160f042daffa00a (patch)
tree1f0471432436adc2441582dfaafc156aefbc9f0a /bin/reproducible_setup_schroot.sh
parent44a11c07bbf484d3696c41be7770b7bd565b76c1 (diff)
downloadjenkins.debian.net-3092f9f22cf6b2a1d7ac2dc40160f042daffa00a.tar.xz
reproducible: drop all these debbindiff lockfiles thinghies. They are not really needed and causes only troubles
Diffstat (limited to 'bin/reproducible_setup_schroot.sh')
-rwxr-xr-xbin/reproducible_setup_schroot.sh24
1 files changed, 0 insertions, 24 deletions
diff --git a/bin/reproducible_setup_schroot.sh b/bin/reproducible_setup_schroot.sh
index e76acecb..a6a04c4b 100755
--- a/bin/reproducible_setup_schroot.sh
+++ b/bin/reproducible_setup_schroot.sh
@@ -129,29 +129,6 @@ bootstrap $@
trap - INT TERM EXIT
-remove_writelock() {
- # remove the lock
- rm $DBDCHROOT_WRITELOCK
-}
-
-trap remove_writelock INT TERM EXIT
-# aquire a write lock in any case
-touch $DBDCHROOT_WRITELOCK
-if [ -f $DBDCHROOT_READLOCK ] ; then
- # patiently wait for our users to using the schroot
- for i in $(seq 0 200) ; do
- sleep 15
- echo "sleeping 15s, debbindiff schroot is locked and used."
- if [ ! -f $DBDCHROOT_READLOCK ] ; then
- break
- fi
- done
- if [ -f $DBDCHROOT_READLOCK ] ; then
- echo "Warning: lock $DBDCHROOT_READLOCK still exists, exiting."
- exit 1
- fi
-fi
-
# pivot the new schroot in place
rand=$RANDOM
if [ -d $SCHROOT_BASE/"$TARGET" ]
@@ -179,4 +156,3 @@ sudo tee /etc/schroot/chroot.d/jenkins-"$TARGET" <<-__END__
__END__
trap - INT TERM EXIT
-remove_writelock