From a176096fb089bb68d9f2e6f5d975f1b569b467aa Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 2 Feb 2021 14:00:30 +0100 Subject: report-installed-packages.in: refresh keys prior to sending --- report-installed-packages.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/report-installed-packages.in b/report-installed-packages.in index 36dc65c..744e0a0 100755 --- a/report-installed-packages.in +++ b/report-installed-packages.in @@ -38,6 +38,14 @@ content=$( if [ -z "${to}" ] || [ -z "${from}" ]; then echo "${content}" elif [ -n "${content}" ]; then + gpg --list-keys --with-colons "${to}" \ + | awk -F: '$1 == "fpr" {print $10}' \ + | while read -r fpr; do + curl -Ss 'https://archlinux32.org/keys.php?k='"${fpr}" + done \ + | gpg --import \ + >/dev/null 2>&1 + printf '%s\n' \ "From: ${from}" \ "To: ${to}" \ -- cgit v1.2.3-54-g00ecf