diff options
author | Erich Eckner <git@eckner.net> | 2019-09-02 15:32:56 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-04 14:32:31 +0200 |
commit | c22298cdec14c2835ce4fbfb6d31ebcb36436e29 (patch) | |
tree | fae3e023167f5da563adf25467f468677dd6e97e /bin | |
parent | 7ed7e45e2e808eb53c27591338cb162664643206 (diff) | |
download | builder-c22298cdec14c2835ce4fbfb6d31ebcb36436e29.tar.xz |
bin/build-packages: retrieve keys from our keystore
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-packages | 12 |
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 |