Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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