]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Keep track of collection resets from CLI arguments (fixes #3208)
authorSeptatrix <24257556+Septatrix@users.noreply.github.com>
Wed, 20 Nov 2024 22:10:45 +0000 (23:10 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 21 Nov 2024 13:36:38 +0000 (14:36 +0100)
commit3d2fbda95c243d16d04b2a917f2baa45bc48159d
treeb4fa4025a19edc3fb376eecd3ff7a9363de8ceb3
parent4447b04f9e02b52d24a4b0bbbda3cf94edf8f26e
Keep track of collection resets from CLI arguments (fixes #3208)

Previously it was only possible to completely reset but not append,
or only append but not reset to collection/list settings
via command line arguments.
Now we track if a setting has ever been set to None (i.e. reset)
during command line parsing.
This information is used during value finalization
to decide whether to merge both collections or only keep the CLI value.
mkosi/config.py
tests/test_config.py