diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-10-31 12:53:50 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-10-31 12:53:50 +0100 |
commit | e07d318c54e9d708d9e9b5c795392e6afae07fcd (patch) | |
tree | 9b8dfa863a5523c17aa6e4d62e484215499c4d38 /commitpkg.in | |
parent | a06ac2451a73744f6e4bb2b895719d2c3ad588e3 (diff) | |
download | devtools-e07d318c54e9d708d9e9b5c795392e6afae07fcd.tar.gz devtools-e07d318c54e9d708d9e9b5c795392e6afae07fcd.tar.xz |
commitpkg: Skip signing if signature already exists
Diffstat (limited to 'commitpkg.in')
-rw-r--r-- | commitpkg.in | 5 |
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 |