]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Fix installation conditions for rpmautospec-rpm-macros 38165/head
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Fri, 11 Jul 2025 07:48:29 +0000 (09:48 +0200)
committerDaanDeMeyer <daan.j.demeyer@gmail.com>
Fri, 11 Jul 2025 07:48:29 +0000 (09:48 +0200)
rpmautospec-rpm-macros is only in EPEL 9 so let's gate it properly
on that by splitting up the epel packages config file into two.

erofs-utils is in EPEL 9 and in CentOS Stream 10.

mkosi/mkosi.images/build/mkosi.conf.d/centos/mkosi.conf.d/erofs-utils.conf [new file with mode: 0644]
mkosi/mkosi.images/build/mkosi.conf.d/centos/mkosi.conf.d/rpmautospec-rpm-macros.conf [moved from mkosi/mkosi.images/build/mkosi.conf.d/centos/mkosi.conf.d/epel-packages.conf with 57% similarity]

diff --git a/mkosi/mkosi.images/build/mkosi.conf.d/centos/mkosi.conf.d/erofs-utils.conf b/mkosi/mkosi.images/build/mkosi.conf.d/centos/mkosi.conf.d/erofs-utils.conf
new file mode 100644 (file)
index 0000000..ef45d2a
--- /dev/null
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[TriggerMatch]
+Repositories=epel
+Release=9
+
+[TriggerMatch]
+Release=10
+
+[Content]
+Packages=erofs-utils
similarity index 57%
rename from mkosi/mkosi.images/build/mkosi.conf.d/centos/mkosi.conf.d/epel-packages.conf
rename to mkosi/mkosi.images/build/mkosi.conf.d/centos/mkosi.conf.d/rpmautospec-rpm-macros.conf
index 15849c51452f266219e0b006b9c437a4666aa743..6a67165b93896cf1ef9672b6e0ebf62ccb6049c1 100644 (file)
@@ -2,8 +2,7 @@
 
 [Match]
 Repositories=epel
+Release=9
 
 [Content]
-Packages=
-        erofs-utils
-        rpmautospec-rpm-macros
+Packages=rpmautospec-rpm-macros