summaryrefslogtreecommitdiffstats
path: root/mkosi.conf.d
diff options
context:
space:
mode:
authorDavide Cavalca <davide@cavalca.name>2024-11-12 05:49:36 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-11-12 19:05:17 +0100
commitfa8a55a91422fdf86efe6bc06d73c2fa00fc5bae (patch)
tree51c83cb02530496e5b386f82151e636b666e3afd /mkosi.conf.d
parentTODO: Fix typo (#35138) (diff)
downloadsystemd-fa8a55a91422fdf86efe6bc06d73c2fa00fc5bae.tar.xz
systemd-fa8a55a91422fdf86efe6bc06d73c2fa00fc5bae.zip
mkosi: ruff is not available on all distros
Refactor to only install ruff where it is available
Diffstat (limited to 'mkosi.conf.d')
-rw-r--r--mkosi.conf.d/05-tools/mkosi.conf1
-rw-r--r--mkosi.conf.d/05-tools/mkosi.conf.d/arch.conf1
-rw-r--r--mkosi.conf.d/05-tools/mkosi.conf.d/fedora.conf8
-rw-r--r--mkosi.conf.d/05-tools/mkosi.conf.d/opensuse.conf1
4 files changed, 10 insertions, 1 deletions
diff --git a/mkosi.conf.d/05-tools/mkosi.conf b/mkosi.conf.d/05-tools/mkosi.conf
index 8ac2ebe24d..02bf2aadda 100644
--- a/mkosi.conf.d/05-tools/mkosi.conf
+++ b/mkosi.conf.d/05-tools/mkosi.conf
@@ -7,4 +7,3 @@ ToolsTreePackages=
meson
mypy
pkgconf
- ruff
diff --git a/mkosi.conf.d/05-tools/mkosi.conf.d/arch.conf b/mkosi.conf.d/05-tools/mkosi.conf.d/arch.conf
index 81a6ee3c97..0a5621c1e6 100644
--- a/mkosi.conf.d/05-tools/mkosi.conf.d/arch.conf
+++ b/mkosi.conf.d/05-tools/mkosi.conf.d/arch.conf
@@ -10,5 +10,6 @@ ToolsTreePackages=
libmicrohttpd
python-jinja
python-pytest
+ ruff
tpm2-tss
util-linux-libs
diff --git a/mkosi.conf.d/05-tools/mkosi.conf.d/fedora.conf b/mkosi.conf.d/05-tools/mkosi.conf.d/fedora.conf
new file mode 100644
index 0000000000..0b6bd4a5a9
--- /dev/null
+++ b/mkosi.conf.d/05-tools/mkosi.conf.d/fedora.conf
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+ToolsTreeDistribution=fedora
+
+[Build]
+ToolsTreePackages=
+ ruff
diff --git a/mkosi.conf.d/05-tools/mkosi.conf.d/opensuse.conf b/mkosi.conf.d/05-tools/mkosi.conf.d/opensuse.conf
index 09c279037b..658829f6cb 100644
--- a/mkosi.conf.d/05-tools/mkosi.conf.d/opensuse.conf
+++ b/mkosi.conf.d/05-tools/mkosi.conf.d/opensuse.conf
@@ -12,6 +12,7 @@ ToolsTreePackages=
pkgconfig(fdisk)
pkgconfig(libmicrohttpd)
pkgconfig(mount)
+ python3-ruff
tss2-devel
python3-jinja2
python3-pytest