Fix the broken existing signature checking on add/resign (RhBug:488953)
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 28 Sep 2010 13:09:30 +0000 (16:09 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 28 Sep 2010 13:18:41 +0000 (16:18 +0300)
commitc0aad81e9b17afcbea4008485d354673495eb148
tree286256ac942ba320777803ec83f720ab768efed4
parente29313061313a9e29d38a005f1b5f5bdc47ccd84
Fix the broken existing signature checking on add/resign (RhBug:488953)
- The previously used %_signature macro for determining the generated
  signature type is utterly useless as gpg can generate both DSA and RSA
  signatures just fine. Generate the new signature and compare with the
  previous one in the header (if any) for real results. This is ugly
  hackery around limitations in the lower level signature functions but
  to keep this remotely backportable for now...
lib/rpmgensig.c