From: Daan De Meyer Date: Sat, 22 Jul 2023 18:22:18 +0000 (+0200) Subject: Make sure all dnf log files are removed X-Git-Tag: v15~64^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c12eb7da5f42c08c604f8f8cd334810f62bceb61;p=thirdparty%2Fmkosi.git Make sure all dnf log files are removed --- diff --git a/mkosi/distributions/fedora.py b/mkosi/distributions/fedora.py index 5509affd9..c376c05ed 100644 --- a/mkosi/distributions/fedora.py +++ b/mkosi/distributions/fedora.py @@ -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()