summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-12-03 21:41:10 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-12-03 21:41:10 +0100
commitd77abe540ea30abb0d4b9e01d513b24d8011058b (patch)
tree17b0508fafa00481f160d33eeb83f15a66c84113 /bin
parent5a425eddb3b5fa7e37510ba65719e2e620a3984e (diff)
downloadbuildscripts-d77abe540ea30abb0d4b9e01d513b24d8011058b.tar.gz
buildscripts-d77abe540ea30abb0d4b9e01d513b24d8011058b.tar.bz2
buildscripts-d77abe540ea30abb0d4b9e01d513b24d8011058b.zip
only lock workspace during prepare_workspace
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-deb-package5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/build-deb-package b/bin/build-deb-package
index 42803dd..49c0d80 100755
--- a/bin/build-deb-package
+++ b/bin/build-deb-package
@@ -318,8 +318,8 @@ wait_for_lock() {
pid=$(head -n1 $LOCK_FILE)
if ! ps $pid 1>/dev/null; then rm -f $LOCK_FILE
else
- echo "PROJECT directory is locked, sleeping for 5 minutes..."
- sleep 300
+ echo "PROJECT directory is locked, sleeping for 10 seconds..."
+ sleep 10
fi
done
}
@@ -339,6 +339,7 @@ set_vars $@ && {
cd $PROJECT_DIR && pkgneedsbuild $CHECKOUT || [ "$FORCE_BUILD" = "yes" ] && {
lock_workspace
prepare_workspace && {
+ unlock_workspace
clear_pkgdist
build_packages
}