Navigation Menu

Skip to content

Commit

Permalink
Don't sign to already signed rpm when key is missing
Browse files Browse the repository at this point in the history
It causes following the error for example.

  % rpm --checksig repositories/centos/5/source/SRPMS/MySQL-5.5.21-1.rhel5.src.rpm
  error: repositories/centos/5/source/SRPMS/MySQL-5.5.21-1.rhel5.src.rpm: sigh tags: BAD, no. of tags(33) out of range
  • Loading branch information
kenhys committed Jun 29, 2015
1 parent 98ee786 commit c0029e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yum/sign-rpm.sh
Expand Up @@ -24,7 +24,7 @@ run()
unsigned_rpms()
{
while read rpm; do
rpm --checksig "$rpm" | grep -v 'gpg OK' | cut -d":" -f1
rpm --checksig "$rpm" | grep -v 'gpg OK' | grep -v 'MISSING KEYS' | cut -d":" -f1
done
}

Expand Down

0 comments on commit c0029e4

Please sign in to comment.