]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add check_config_file=False to all dnf repo definitions 1309/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 17 Jan 2023 12:48:36 +0000 (13:48 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 17 Jan 2023 13:33:34 +0000 (14:33 +0100)
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

index 999348d91ed7ddafddd2ee67cf0b4081728c2f4c..62acb476d611586f55e5c8663d10439d08c680fe 100644 (file)
@@ -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
                     """
                 )
             )