diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2013-04-07 09:30:18 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2013-04-07 09:30:18 +0200 |
commit | 26d7dc229acfe8b7d02b0d278c2c70eddc2326c4 (patch) | |
tree | de1473194ef4687cf29377c913c1a25945b5e575 /src | |
parent | 5c2dd97a91421e6e5f7e920579fcb88bb71e7fa7 (diff) |
librerelease: Don't resign packages after successful verification.
All such resigns were interactive and unneeded.
Diffstat (limited to 'src')
-rwxr-xr-x | src/abslibre-tools/librerelease | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index efb698e..5a98cf8 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -69,12 +69,14 @@ function sign_packages { fi fi - msg2 "Signing ${package}..." - gpg --default-key "${SIGID}" --output "${package}${SIGEXT}" \ - --detach-sig "${package}" || { - error "Signing failed" - exit 2 - } + if ! [ -f "${package}${SIGEXT}" ]; then + msg2 "Signing ${package}..." + gpg --default-key "${SIGID}" --output "${package}${SIGEXT}" \ + --detach-sig "${package}" || { + error "Signing failed" + exit 2 + } + fi done } |