From: Daan De Meyer Date: Tue, 17 Jan 2023 12:48:36 +0000 (+0100) Subject: Add check_config_file=False to all dnf repo definitions X-Git-Tag: v15~361^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1309%2Fhead;p=thirdparty%2Fmkosi.git 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. --- 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 """ ) )