Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/update-gpg-keys12
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/update-gpg-keys b/bin/update-gpg-keys
index 5a37e78..fe6dfe3 100755
--- a/bin/update-gpg-keys
+++ b/bin/update-gpg-keys
@@ -28,9 +28,6 @@ fi
| gpg --import --quiet \
>/dev/null 2>&1 \
|| true
- gpg -a --export "${fingerprint}" \
- | curl -T - 'https://archlinux32.org/keys.php' \
- >/dev/null 2>&1
printf 'UPDATE `gpg_keys`'
printf ' SET `gpg_keys`.`public_key`=from_base64("%s")' \
"$(
@@ -41,3 +38,12 @@ fi
"${fingerprint}"
done \
| mysql_run_query
+
+# shellcheck disable=SC2016
+{
+ printf 'SELECT `gpg_keys`.`fingerprint`'
+ printf ' FROM `gpg_keys`;\n'
+} \
+| mysql_run_query \
+| xargs -r gpg -a --export \
+| curl -T - 'https://archlinux32.org/keys.php'