diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-08-30 16:51:02 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-09-11 15:55:25 -0400 |
commit | f7ae2ffa3341d63528d4322bf5ac988ed6c0b65e (patch) | |
tree | 31b23da83bc06c7bbeb6556ecf4f3ec0a377ceb2 /src/abslibre-tools | |
parent | 6eddc77d5e6abb25f33751308419fa0c62518188 (diff) |
libre{stage,release}: fix https://labs.parabola.nu/issues/379
Diffstat (limited to 'src/abslibre-tools')
-rwxr-xr-x | src/abslibre-tools/librerelease | 1 | ||||
-rwxr-xr-x | src/abslibre-tools/librestage | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index 91edf23..4dd17b0 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -157,6 +157,7 @@ function main { # The following variables are actually optional #check_vars libretools HOOKPRERELEASE HOOKPOSTRELEASE || return 1 + lock 10 "${WORKDIR}/staging.lock" 'Waiting for an exclusive lock on the staging directory' "$mode" } diff --git a/src/abslibre-tools/librestage b/src/abslibre-tools/librestage index e67e98f..b85878b 100755 --- a/src/abslibre-tools/librestage +++ b/src/abslibre-tools/librestage @@ -67,6 +67,7 @@ main() { # Now for the main routine. staged=false + slock 10 "${WORKDIR}/staging.lock" 'Waiting for a shared lock on the staging directory' for CARCH in "${ARCHES[@]}" any; do for _pkgname in "${pkgname[@]}"; do pkgfile=${_pkgname}-$(get_full_version $_pkgname)-${CARCH}${PKGEXT} |