ALBS-1030: Generate Devel section in packages.json

- Skip verifying an RPM signature if sigkeys are empty
This commit is contained in:
soksanichenko 2023-03-20 13:25:45 +02:00
parent d32c293bca
commit fcc9b4f1ca
1 changed files with 2 additions and 0 deletions

View File

@ -889,6 +889,8 @@ class KojiMockPackageSet(KojiPackageSet):
sigkey.lower() for sigkey in self.sigkey_ordering
if sigkey is not None
]
if not sigkeys:
return True
with open(rpm_path, 'rb') as fd:
header = ts.hdrFromFdno(fd)
signature = header[rpm.RPMTAG_SIGGPG] or header[rpm.RPMTAG_SIGPGP]