From c22298cdec14c2835ce4fbfb6d31ebcb36436e29 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 2 Sep 2019 15:32:56 +0200 Subject: bin/build-packages: retrieve keys from our keystore --- bin/build-packages | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bin/build-packages') 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 -- cgit v1.2.3