]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Add BuildSources= match 2018/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 28 Oct 2023 10:42:58 +0000 (12:42 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 28 Oct 2023 11:34:51 +0000 (13:34 +0200)
commitdca0d1e1d04470d62b72ef64f3e46f6e1d11a378
tree0284819cb2e0613e69d4e64915d4a8747770aee1
parent7a018c8b7d07abb6bcacf47de5dd2880f368fe13
Add BuildSources= match

One pattern I've started using a lot when I have to build multiple
projects from source in a build script is to check if a source tree
has been mounted at some location using BuildSources= and to only
build the project if that's the case.

The problem with this is that this only allows me to skip the build,
it doesn't allow me to skip installing the necessary build and runtime
packages for that particular project.

Let's add a BuildSources= match so that everything related to the
project can be skipped if the project is not configured to be mounted
at some location using BuildSources=.
mkosi/__init__.py
mkosi/config.py
mkosi/resources/mkosi.md
tests/test_config.py
tests/test_json.py