]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
centos: Fix condition for using /usr/lib/sysimage/rpm with hyperscale 2402/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 19 Feb 2024 13:00:34 +0000 (14:00 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 19 Feb 2024 14:39:50 +0000 (15:39 +0100)
mkosi/distributions/centos.py

index b065ae91766891e1b52701f861cfc450653a23a5..d98b6ebedd0ce272322b86aa860a1e72a8ebef24 100644 (file)
@@ -58,10 +58,11 @@ class Installer(DistributionInstaller):
         if GenericVersion(context.config.release) < 9:
             return "/var/lib/rpm"
 
-        # The Hyperscale SIG uses /usr/lib/sysimage/rpm from C9S onwards already.
+        # The Hyperscale SIG uses /usr/lib/sysimage/rpm in its rebuild of rpm for C9S that's shipped in the
+        # hyperscale-packages-experimental repository.
         if (
             GenericVersion(context.config.release) == 9 and
-            not any("hyperscale" in repo for repo in context.config.repositories)
+            "hyperscale-packages-experimental" not in context.config.repositories
         ):
             return "/var/lib/rpm"