From e07d318c54e9d708d9e9b5c795392e6afae07fcd Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 31 Oct 2011 12:53:50 +0100 Subject: commitpkg: Skip signing if signature already exists --- commitpkg.in | 5 ++--- 1 file 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 -- cgit v1.2.3-70-g09d2