From 832d73974069ccc30046fe52d0d89cc53ad49af5 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 19 Feb 2024 14:00:34 +0100 Subject: [PATCH] centos: Fix condition for using /usr/lib/sysimage/rpm with hyperscale --- mkosi/distributions/centos.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mkosi/distributions/centos.py b/mkosi/distributions/centos.py index b065ae917..d98b6ebed 100644 --- a/mkosi/distributions/centos.py +++ b/mkosi/distributions/centos.py @@ -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" -- 2.47.2