Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-02 15:32:56 +0200
committerErich Eckner <git@eckner.net>2019-09-04 14:32:31 +0200
commitc22298cdec14c2835ce4fbfb6d31ebcb36436e29 (patch)
treefae3e023167f5da563adf25467f468677dd6e97e /bin/build-packages
parent7ed7e45e2e808eb53c27591338cb162664643206 (diff)
bin/build-packages: retrieve keys from our keystore
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-xbin/build-packages12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 23cff3b..d0d5ad2 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -27,9 +27,6 @@
# TODO: releave some locking conditions - meta goal: be able to run multiple
# build slaves on one host from within one archlinux32/builder repository
-# TODO: Set up some keyserver to retrieve the missing keys from. A
-# background job can then scrub the net for wanted keys.
-
# shellcheck disable=SC2016
usage() {
>&2 echo ''
@@ -517,7 +514,14 @@ while [ "${count}" -ne 0 ] && \
' "${log_file}"
)
if [ -n "${missing_keys}" ]; then
-# TODO: how about putting all the missing keys somewhere on archlinux32.org?
+ if printf '%s\n' "${missing_keys}" \
+ | sed '
+ s@^@https://archlinux32.org/keys.php?k=@
+ ' \
+ | xargs curl -Ss \
+ | gpg --import; then
+ continue
+ fi
if gpg --recv-keys "${missing_keys}"; then
continue
fi