]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Use the directory mkosi was invoked in as the default for BuildSources= 2262/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 Jan 2024 19:22:59 +0000 (20:22 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 Jan 2024 20:18:45 +0000 (21:18 +0100)
commitbda17a2acad62c298c37558e932fd80f0fd4c44c
tree4a16c0c26afb3d12b2f54a483c61b24d9acb5c5b
parent36346ead6d3cc8b16bca046b47587274d0d05293
Use the directory mkosi was invoked in as the default for BuildSources=

While parsing config, we use chdir(). Also, when a BuildSources=
match is found, BuildSources= is initialized to its default value
which is Path.cwd(). However, we want the default value to be the
top level directory that mkosi was invoked in, not the current working
directory that we happen to be in while parsing configuration. Let's
fix this by using the directory mkosi was invoked in instead of Path.cwd().
mkosi/config.py