find public key violations
This commit is contained in:
parent
10456f70b8
commit
2455f20ce9
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user