From: Daan De Meyer Date: Wed, 19 Feb 2025 11:37:08 +0000 (+0100) Subject: config: Don't load history if --directory "" is passed X-Git-Tag: v26~368^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d444c865d4ea819e784e5e36eb40fc12562ff122;p=thirdparty%2Fmkosi.git config: Don't load history if --directory "" is passed --- diff --git a/mkosi/config.py b/mkosi/config.py index 1d959e999..8fa2e4d59 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -4640,7 +4640,8 @@ class ParseContext: def have_history(args: Args) -> bool: return ( - args.verb.needs_build() + args.directory is not None + and args.verb.needs_build() and args.verb != Verb.build and not args.force and Path(".mkosi-private/history/latest.json").exists()