From a4449272e4cfd785570147055a4777c4bb8104e7 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 17 Jan 2023 13:48:36 +0100 Subject: [PATCH] Add check_config_file=False to all dnf repo definitions By default, dnf will always refresh repository metadata if the timestamp of the config file has changed. Since we always rewrite the config file, this will always be the case, so let's make sure we don't refresh the metadata every time. --- mkosi/distributions/fedora.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mkosi/distributions/fedora.py b/mkosi/distributions/fedora.py index 999348d91..62acb476d 100644 --- a/mkosi/distributions/fedora.py +++ b/mkosi/distributions/fedora.py @@ -171,6 +171,7 @@ def setup_dnf(state: MkosiState, repos: Sequence[Repo] = ()) -> None: {repo.url} gpgkey={gpgkey or ''} enabled={int(repo.enabled)} + check_config_file_age=False """ ) ) -- 2.47.2