]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix CentOS SIG keys
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 5 Oct 2023 13:45:10 +0000 (15:45 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 5 Oct 2023 13:52:50 +0000 (15:52 +0200)
mkosi/distributions/centos.py

index 181edba444a8112c4ecf0c00db26ccb9e96ce248..572ad817bbe3826c73053acb97d3aa7b0ec68a41 100644 (file)
@@ -350,12 +350,16 @@ class Installer(DistributionInstaller):
             ),
         )
 
-        for sig, components, key in sigs:
-            gpgpath = Path(f"/usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-{key}")
-            if gpgpath.exists():
-                gpgurls = (f"file://{gpgpath}",)
-            else:
-                gpgurls = (f"https://www.centos.org/keys/RPM-GPG-KEY-{key}",)
+        for sig, components, keys in sigs:
+            gpgurls = []
+            for key in keys:
+                gpgpath = Path(f"/usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-{key}")
+                if gpgpath.exists():
+                    gpgurls += [f"file://{gpgpath}"]
+                else:
+                    gpgurls += [f"https://www.centos.org/keys/RPM-GPG-KEY-{key}"]
+
+            gpgurls = tuple(gpgurls)
 
             for c in components:
                 if config.mirror: