summaryrefslogtreecommitdiff
path: root/src/abslibre-tools/librerelease
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-20 22:08:07 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-20 22:08:07 -0400
commitcc0034ce01741e7f3de2fd681144846df6b3fc66 (patch)
tree55288fde19b410aa14c19282d2d7eedd219fff93 /src/abslibre-tools/librerelease
parentbec95eeaee02dffb0f1750b9ca2641378bbe9df9 (diff)
Move the staging lock file descriptor from 10 to 8. >=10 isn't safe.
Diffstat (limited to 'src/abslibre-tools/librerelease')
-rwxr-xr-xsrc/abslibre-tools/librerelease8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease
index e3869e9..fc1ab11 100755
--- a/src/abslibre-tools/librerelease
+++ b/src/abslibre-tools/librerelease
@@ -187,14 +187,14 @@ pretty_print_packages() {
}
clean() {
- lock 10 "${WORKDIR}/staging.lock" \
+ lock 8 "${WORKDIR}/staging.lock" \
'Waiting for an exclusive lock on the staging directory'
local file_list="$(mktemp -t ${0##*/}.XXXXXXXXXX)"
trap "$(printf 'rm -f -- %q' "$file_list")" EXIT
list0_files > "$file_list"
- lock_close 10
+ lock_close 8
clean_files "$file_list"
}
@@ -206,7 +206,7 @@ release_packages() {
bash -c "${HOOKPRERELEASE}"
fi
- lock 10 "${WORKDIR}/staging.lock" \
+ lock 8 "${WORKDIR}/staging.lock" \
'Waiting for an exclusive lock on the staging directory'
sign_packages || return 1
@@ -221,7 +221,7 @@ release_packages() {
trap "$(printf 'rm -f -- %q' "$file_list")" EXIT
list0_files > "$file_list"
- lock_close 10
+ lock_close 8
msg "%s to upload" "$(cd "${WORKDIR}/staging" && du -hc --files0-from="$file_list" | sed -n '$s/\t.*//p')"
msg "Uploading packages..."