2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-09 22:46:45 +00:00

Import the signing key SLE 16 media ships

Building a SUSE 16 image from SLE media failed every package with
"key ID fec28eaf09d9ea69: NOKEY". Leap publishes that key as
gpg-pubkey-*.asc, which the existing glob picks up; SLE publishes the
same key only as repodata/repomd.xml.key, so nothing was imported.

15 media carries both spellings, so this changes nothing there.
This commit is contained in:
Markus Hilger
2026-09-07 13:19:36 +02:00
parent c66d7bcb7e
commit 583e2fa321
+2
View File
@@ -657,6 +657,8 @@ class SuseHandler(OsHandler):
if source.startswith('file://'):
gpgpath = source.replace('file://', '')
gpgkeys.extend(glob.glob(os.path.join(gpgpath, '*/gpg-pubkey*.asc')))
# SLE media publishes the signing key only as the repo key
gpgkeys.extend(glob.glob(os.path.join(gpgpath, '*/repodata/repomd.xml.key')))
subprocess.check_call(self.zypper_cmd() + ['ar', source, 'source-{}'.format(idx)])
idx += 1
if gpgkeys: