summaryrefslogtreecommitdiff
path: root/librerelease
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-14 11:47:52 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-14 11:47:52 -0300
commit7506b06cb81951a4705908f6bfe93f81d50667a7 (patch)
tree51d257cec4863822058bd6510fb39f4f33e29a06 /librerelease
parent875ec16b3d25c2b4d9dc5c940702f5ecde76cf7f (diff)
parentbb7f637b5c5fe7df671d374d2b8547f2431bad82 (diff)
Merge branch 'master' into fauno
Diffstat (limited to 'librerelease')
-rwxr-xr-xlibrerelease15
1 files changed, 13 insertions, 2 deletions
diff --git a/librerelease b/librerelease
index f31bc3a..bac5b88 100755
--- a/librerelease
+++ b/librerelease
@@ -72,7 +72,12 @@ function sign_packages {
fi
msg2 "Signing ${package}..."
- gpg --default-key "${SIGID}" --output "${package}${SIGEXT}" --detach-sig "${package}"
+ gpg --default-key "${SIGID}" --output "${package}${SIGEXT}" \
+ --detach-sig "${package}" || {
+ error "Signing failed"
+ exit 2
+ }
+
done
}
@@ -110,11 +115,17 @@ done
clean_non_packages
if [ ! -z "${SIGID}" ]; then
sign_packages
-else
+else
error "Package signing is *required*"
exit 1
fi
+# Make the permissions of the packages 644 otherwize the user will get access
+# denied error when they try to download (rsync --no-perms doesn't seem to
+# work).
+find ${WORKDIR}/staging -type f -exec chmod 644 {} \;
+find ${WORKDIR}/staging -type d -exec chmod 755 {} \;
+
msg "Uploading packages..."
rsync --recursive \
${dryrun} \