diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-03 21:41:10 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-03 21:41:10 +0100 |
commit | d77abe540ea30abb0d4b9e01d513b24d8011058b (patch) | |
tree | 17b0508fafa00481f160d33eeb83f15a66c84113 /bin | |
parent | 5a425eddb3b5fa7e37510ba65719e2e620a3984e (diff) | |
download | buildscripts-d77abe540ea30abb0d4b9e01d513b24d8011058b.tar.gz buildscripts-d77abe540ea30abb0d4b9e01d513b24d8011058b.tar.bz2 buildscripts-d77abe540ea30abb0d4b9e01d513b24d8011058b.zip |
only lock workspace during prepare_workspace
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-deb-package | 5 |
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 } |