Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/commitpkg.in
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-08-10 16:33:51 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-08-10 16:33:51 +0200
commit69e1d614cd4ba34d3ed1e4386cb1c335b0cf5db7 (patch)
tree8e41946f9603f8c480163146044927404d9b33ed /commitpkg.in
parent3c7d0b27036ef60cf5ad22397f4823d45687637b (diff)
parentb8d9a2b4fd02918a9988aafdf073e45a957b32e7 (diff)
Merge branch 'upstreamMaster' into abaaba
Diffstat (limited to 'commitpkg.in')
-rw-r--r--commitpkg.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/commitpkg.in b/commitpkg.in
index 928e638..e0da32d 100644
--- a/commitpkg.in
+++ b/commitpkg.in
@@ -48,6 +48,21 @@ case "$cmd" in
;;
esac
+
+if (( ${#validpgpkeys[@]} != 0 )); then
+ if [[ -d keys ]]; then
+ for key in "${validpgpkeys[@]}"; do
+ if [[ ! -f keys/pgp/$key.asc ]]; then
+ export-pkgbuild-keys || die 'Failed to export valid PGP keys for source files'
+ fi
+ done
+ else
+ export-pkgbuild-keys || die 'Failed to export valid PGP keys for source files'
+ fi
+
+ svn add --parents --force keys/pgp/*
+fi
+
# find files which should be under source control
needsversioning=()
for s in "${source[@]}"; do
@@ -60,6 +75,9 @@ for i in 'changelog' 'install'; do
needsversioning+=("$file")
done < <(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD)
done
+for key in "${validpgpkeys[@]}"; do
+ needsversioning+=("keys/pgp/$key.asc")
+done
# assert that they really are controlled by SVN
if (( ${#needsversioning[*]} )); then