index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-10-01 13:04:26 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-01 13:04:26 +0200 |
commit | 7309674ca7b5606bd6268712a6743de66761bd0d (patch) | |
tree | fa9f319af6d0a6c2810e5ef64852107265df87d0 /bin/build-packages | |
parent | 343134ff30132a7ef7946abbaef6edb949c9152e (diff) |
-rwxr-xr-x | bin/build-packages | 15 |
diff --git a/bin/build-packages b/bin/build-packages index 24951c7..4a727ca 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -725,16 +725,21 @@ while [ "${count}" -ne 0 ] && \ fi echo 'failure' > "${tmp_dir}/.ping-build-master" >&2 printf ' failed.\n' + # receive missing keys + # shellcheck disable=SC2038 + find . -type f -maxdepth 1 -name '*.build-log' -exec \ + sed -n ' + s/^.* FAILED (unknown public key \([0-9A-F]\{16\}\)).*$/0x\1/ + T + p + ' {} \; | \ + xargs -rn1 gpg --recv-keys || \ + true done if ! ${success}; then for log in *'.build-log'; do if [ -f "${log}" ]; then - sed -n ' - s/^.* FAILED (unknown public key \([0-9A-F]\{16\}\)).*$/0x\1/ - T - p - ' "${log}" | xargs -rn1 gpg --recv-keys if ${upload_to_build_master}; then gzip "${log}" else |