]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Make load_args sideeffect free
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 28 Oct 2022 09:00:42 +0000 (11:00 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 28 Oct 2022 09:54:06 +0000 (11:54 +0200)
commit60289499675661169cd7bfda2faf331663a43c73
tree6b91dfb4a9db9b8de1f8bab18925ddd45bd50631
parent058046019e7ed2e8e93af87b8c14a808dcc6bbc3
Make load_args sideeffect free

It is unnecessary for the find_foo functions in load_args to generate and chown
directories, since for output and build directory this is already done by the
make_foo_dir functions in build_stuff. At a similar function for the cache
directory.

Having the find_foo functions make the directories has the downside of leading
to permission errors, when the tests are run with fakeroot as done by many
distro buildsystems.
mkosi/__init__.py