Permalink
Browse files

commitpkg: Skip signing if signature already exists

  • Loading branch information...
1 parent a06ac24 commit e07d318c54e9d708d9e9b5c795392e6afae07fcd @pierres pierres committed Oct 31, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 commitpkg.in
View
@@ -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

0 comments on commit e07d318

Please sign in to comment.