From: Daan De Meyer Date: Thu, 6 Feb 2025 10:18:45 +0000 (+0100) Subject: fedora: Don't fail if we can't find N+1 key X-Git-Tag: v26~413^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ca89906fc1f85514ae08b1f50f66be0d3864af8;p=thirdparty%2Fmkosi.git fedora: Don't fail if we can't find N+1 key It might not be there set, so don't fail if it isn't there. --- diff --git a/mkosi/distributions/fedora.py b/mkosi/distributions/fedora.py index d7dacd5cc..11f93cba5 100644 --- a/mkosi/distributions/fedora.py +++ b/mkosi/distributions/fedora.py @@ -40,7 +40,11 @@ def find_fedora_rpm_gpgkeys(context: Context) -> Iterable[str]: path = Path(rhs).resolve() if m := versionre.match(path.name): version = int(m.group(1)) - if key3 := find_rpm_gpgkey(context, key=f"RPM-GPG-KEY-fedora-{version + 1}-primary"): + if key3 := find_rpm_gpgkey( + context, + key=f"RPM-GPG-KEY-fedora-{version + 1}-primary", + required=False, + ): # We yield the resolved path for key1, to make it clear that it's # for version N, and the other key is for version N+1. key1 = path.as_uri()