summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@parabola.nu>2013-06-08 00:14:49 -0300
committerNicolás Reynolds <fauno@parabola.nu>2013-06-08 00:14:49 -0300
commit8fb79bc289bac155cfb6bf9492210af3c717753c (patch)
tree3e0d7b2ccfa25433749c030b7ce28d513f258af5
parenteddd0fe20c0ac9645874cca70349ccfe1967e627 (diff)
Fail when it's not possible to sign packages (issue #347)
-rwxr-xr-xsrc/abslibre-tools/librerelease5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease
index 59983d2..5adb013 100755
--- a/src/abslibre-tools/librerelease
+++ b/src/abslibre-tools/librerelease
@@ -78,6 +78,8 @@ create_signature() {
else
warning "$(gettext "Failed to sign package file.")"
fi
+
+ return $ret
}
function sign_packages {
@@ -164,7 +166,8 @@ function release_packages {
[[ ! -z ${HOOKPRERELEASE} ]] && bash -c "${HOOKPRERELEASE}"
clean_non_packages
- sign_packages
+ # Sign packages or fail
+ sign_packages || return 1
# Make the permissions of the packages 644 otherwise the user will get access
# denied error when they try to download (rsync --no-perms doesn't seem to