]> git.ipfire.org Git - thirdparty/mkosi.git/commit
config: factor out settings_lookup_by* and match_lookup from parse_config 1914/head
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 4 Oct 2023 07:52:24 +0000 (09:52 +0200)
committerJoerg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 4 Oct 2023 08:00:57 +0000 (10:00 +0200)
commit77bd38de92dc53159a617d0289bb82ab0a97f8da
treed4ca4e7d4b4dbe1fa70dc153b82e5d30fde53fbd
parentac6803cdea8111815291e055a0db6aa8896df10d
config: factor out settings_lookup_by* and match_lookup from parse_config

All three (settings_lookup_by_name, settings_lookup_by_dest, and match_lookup)
only repackage global variables. Moving them outside makes them usable in other
places and only calculates them once instead of on every invocation of
parse_config.
mkosi/config.py