From: Antonio Alvarez Feijoo Date: Tue, 18 Nov 2025 13:15:54 +0000 (+0100) Subject: opensuse: do not install openSUSE-release for Leap >= 16.0 X-Git-Tag: v26~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b701c690ddcf3543bc1a698a1977ea390dbfd36;p=thirdparty%2Fmkosi.git opensuse: do not install openSUSE-release for Leap >= 16.0 The `openSUSE-release` package was renamed to `Leap-release` for Leap after 16.0, so it cannot be installed there. --- diff --git a/mkosi/distribution/opensuse.py b/mkosi/distribution/opensuse.py index 498520142..e0b2d5ff5 100644 --- a/mkosi/distribution/opensuse.py +++ b/mkosi/distribution/opensuse.py @@ -56,7 +56,12 @@ class Installer(DistributionInstaller, distribution=Distribution.opensuse): def install(cls, context: Context) -> None: packages = ["filesystem"] if not any(p.endswith("-release") for p in context.config.packages): - packages += ["openSUSE-release"] + if context.config.release in ("current", "stable", "leap") or ( + context.config.release != "tumbleweed" and GenericVersion(context.config.release) >= 16 + ): + packages += ["Leap-release"] + else: + packages += ["openSUSE-release"] cls.install_packages(context, packages, apivfs=False)