find public key violations

This commit is contained in:
Louis Abel 2023-05-13 22:39:04 -07:00
parent 10456f70b8
commit 2455f20ce9
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36

View File

@ -16,9 +16,13 @@ fi
if [ "$ret_val" -eq 0 ]; then if [ "$ret_val" -eq 0 ]; then
recs=$(grep '\[FAILED\]' {{ sync_log }}) recs=$(grep '\[FAILED\]' {{ sync_log }})
rems=$(grep 'Public key for .* is not installed' {{ sync_log }})
if [[ -n "${recs}" ]]; then if [[ -n "${recs}" ]]; then
echo "SOME PACKAGES DID NOT DOWNLOAD" | tee -a {{ sync_log }} echo "SOME PACKAGES DID NOT DOWNLOAD" | tee -a {{ sync_log }}
exit 1 exit 1
elif [[ -n "${rems}" ]]; then
echo "PACKAGES WERE REMOVED DUE TO KEY VIOLATION" | tee -a {{ sync_log }}
exit 2
else else
# This is kind of a hack too. # This is kind of a hack too.
#FOUND=$(grep -A20 'git\.rockylinux\.org' {{ sync_log }} | egrep -c '^\([0-9]+\/[0-9]+\)|\[SKIPPED\]|\.rpm') #FOUND=$(grep -A20 'git\.rockylinux\.org' {{ sync_log }} | egrep -c '^\([0-9]+\/[0-9]+\)|\[SKIPPED\]|\.rpm')