ALBS-1030: Generate Devel section in packages.json
- Skip verifying an RPM signature if sigkeys are empty
This commit is contained in:
parent
d32c293bca
commit
fcc9b4f1ca
@ -889,6 +889,8 @@ class KojiMockPackageSet(KojiPackageSet):
|
|||||||
sigkey.lower() for sigkey in self.sigkey_ordering
|
sigkey.lower() for sigkey in self.sigkey_ordering
|
||||||
if sigkey is not None
|
if sigkey is not None
|
||||||
]
|
]
|
||||||
|
if not sigkeys:
|
||||||
|
return True
|
||||||
with open(rpm_path, 'rb') as fd:
|
with open(rpm_path, 'rb') as fd:
|
||||||
header = ts.hdrFromFdno(fd)
|
header = ts.hdrFromFdno(fd)
|
||||||
signature = header[rpm.RPMTAG_SIGGPG] or header[rpm.RPMTAG_SIGPGP]
|
signature = header[rpm.RPMTAG_SIGGPG] or header[rpm.RPMTAG_SIGPGP]
|
||||||
|
Loading…
Reference in New Issue
Block a user