Generally when -ff is specified users won't want to remove the
default tools tree if they're using one, so let's stop doing that.
The default tools tree is still removed when mkosi -f clean is invoked.
# If we're doing an incremental build and the cache is not out of date, don't clean up the
# tools tree so that we can reuse the previous one.
if tools and (
- not tools.incremental
- or ((args.verb == Verb.build or args.force > 0) and not have_cache(tools))
- or needs_build(args, tools, force=2)
+ not tools.incremental or ((args.verb == Verb.build or args.force > 0) and not have_cache(tools))
):
if tools.incremental == Incremental.strict:
die(