forked from sig_core/toolkit
find public key violations
This commit is contained in:
parent
10456f70b8
commit
2455f20ce9
@ -16,9 +16,13 @@ fi
|
||||
|
||||
if [ "$ret_val" -eq 0 ]; then
|
||||
recs=$(grep '\[FAILED\]' {{ sync_log }})
|
||||
rems=$(grep 'Public key for .* is not installed' {{ sync_log }})
|
||||
if [[ -n "${recs}" ]]; then
|
||||
echo "SOME PACKAGES DID NOT DOWNLOAD" | tee -a {{ sync_log }}
|
||||
exit 1
|
||||
elif [[ -n "${rems}" ]]; then
|
||||
echo "PACKAGES WERE REMOVED DUE TO KEY VIOLATION" | tee -a {{ sync_log }}
|
||||
exit 2
|
||||
else
|
||||
# This is kind of a hack too.
|
||||
#FOUND=$(grep -A20 'git\.rockylinux\.org' {{ sync_log }} | egrep -c '^\([0-9]+\/[0-9]+\)|\[SKIPPED\]|\.rpm')
|
||||
|
Loading…
Reference in New Issue
Block a user