From fcc9b4f1cad392c0f69e3594adf729c40b333705 Mon Sep 17 00:00:00 2001 From: soksanichenko Date: Mon, 20 Mar 2023 13:25:45 +0200 Subject: [PATCH] ALBS-1030: Generate Devel section in packages.json - Skip verifying an RPM signature if sigkeys are empty --- pungi/phases/pkgset/pkgsets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pungi/phases/pkgset/pkgsets.py b/pungi/phases/pkgset/pkgsets.py index a556f139..c97d49fd 100644 --- a/pungi/phases/pkgset/pkgsets.py +++ b/pungi/phases/pkgset/pkgsets.py @@ -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]