]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make sure all dnf log files are removed
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 22 Jul 2023 18:22:18 +0000 (20:22 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 24 Jul 2023 19:42:00 +0000 (21:42 +0200)
mkosi/distributions/fedora.py

index 5509affd99d5b6b480acc0f871c9f62b28869656..c376c05edb6dd0901e56f4e8a1985f7a63a70b69 100644 (file)
@@ -211,7 +211,7 @@ def invoke_dnf(
     # The log directory is always interpreted relative to the install root so there's nothing we can do but
     # to remove the log files from the install root afterwards.
     for p in (state.root / "var/log").iterdir():
-        if p.name.startswith("dnf"):
+        if any(p.name.startswith(prefix) for prefix in ("dnf", "hawkey", "yum")):
             p.unlink()