summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-10-31 12:53:50 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-10-31 12:53:50 +0100
commite07d318c54e9d708d9e9b5c795392e6afae07fcd (patch)
tree9b8dfa863a5523c17aa6e4d62e484215499c4d38
parenta06ac2451a73744f6e4bb2b895719d2c3ad588e3 (diff)
downloaddevtools-e07d318c54e9d708d9e9b5c795392e6afae07fcd.tar.xz
commitpkg: Skip signing if signature already exists
-rw-r--r--commitpkg.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/commitpkg.in b/commitpkg.in
index 43cc015..2216b54 100644
--- a/commitpkg.in
+++ b/commitpkg.in
@@ -156,15 +156,14 @@ for _arch in ${arch[@]}; do
fi
uploads+=("$pkgfile")
- if [[ $SIGNPKG == 'y' ]]; then
+ sigfile="${pkgfile}.sig"
+ if [[ $SIGNPKG == 'y' ]] && [ ! -f "${sigfile}" ]; then
echo "Signing package ${pkgfile}..."
if [[ -n $GPGKEY ]]; then
SIGNWITHKEY="-u ${GPGKEY}"
fi
gpg --detach-sign --use-agent ${SIGNWITHKEY} "${pkgfile}" || abort
fi
-
- sigfile="${pkgfile}.sig"
if [ -f "${sigfile}" ]; then
uploads+=("$sigfile")
elif [[ $SIGNPKG == 'y' ]]; then