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>2018-10-01 13:04:26 +0200
committerErich Eckner <git@eckner.net>2018-10-01 13:04:26 +0200
commit7309674ca7b5606bd6268712a6743de66761bd0d (patch)
treefa9f319af6d0a6c2810e5ef64852107265df87d0 /bin/build-packages
parent343134ff30132a7ef7946abbaef6edb949c9152e (diff)
bin/build-packages: retrieve keys earlier
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-xbin/build-packages15
1 files changed, 10 insertions, 5 deletions
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