]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Make sure we don't build the same tools tree more than once
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 14 Jan 2024 16:16:05 +0000 (17:16 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Sun, 14 Jan 2024 18:21:47 +0000 (19:21 +0100)
commitddcf4ddc1bb5ecbfb32592b10cfcc4202e3c46ea
treea1bb48c1498719906947e8c6ef2e19817c518646
parent42e05c2c6f60c77d72d6fd03b1123ee1331e0330
Make sure we don't build the same tools tree more than once

We can do this by simply checking if the output path already exists
instead of relying on needs_build(). This allows us to refactor
needs_build() to needs_clean(). We also move some prechecks into
run_build() and run_clean() so as to not duplicate them and improve
the logging messages in run_clean().

Fixes #2280
mkosi/__init__.py