Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commitpkg.in26
1 files changed, 14 insertions, 12 deletions
diff --git a/commitpkg.in b/commitpkg.in
index 465ef6b..53b7e9f 100644
--- a/commitpkg.in
+++ b/commitpkg.in
@@ -147,20 +147,22 @@ for _arch in "${arch[@]}"; do
continue 2
fi
uploads+=("$pkgfile")
+ done
+done
- sigfile="${pkgfile}.sig"
- if [[ ! -f $sigfile ]]; then
- msg "Signing package %s..." "${pkgfile}"
- if [[ -n $GPGKEY ]]; then
- SIGNWITHKEY=(-u "${GPGKEY}")
- fi
- gpg --detach-sign --use-agent --no-armor "${SIGNWITHKEY[@]}" "${pkgfile}" || die
- fi
- if ! gpg --verify "$sigfile" "$pkgfile" >/dev/null 2>&1; then
- die "Signature %s is incorrect!" "$sigfile"
+for pkgfile in "${uploads[@]}"; do
+ sigfile="${pkgfile}.sig"
+ if [[ ! -f $sigfile ]]; then
+ msg "Signing package %s..." "${pkgfile}"
+ if [[ -n $GPGKEY ]]; then
+ SIGNWITHKEY=(-u "${GPGKEY}")
fi
- uploads+=("$sigfile")
- done
+ gpg --detach-sign --use-agent --no-armor "${SIGNWITHKEY[@]}" "${pkgfile}" || die
+ fi
+ if ! gpg --verify "$sigfile" "$pkgfile" >/dev/null 2>&1; then
+ die "Signature %s is incorrect!" "$sigfile"
+ fi
+ uploads+=("$sigfile")
done
for _arch in "${arch[@]}"; do