From: Daan De Meyer Date: Mon, 26 May 2025 13:44:42 +0000 (+0200) Subject: Fix version bump check if image version was passed on CLI X-Git-Tag: v26~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef2842dfea38e209450e86e4b27e372f6e5da707;p=thirdparty%2Fmkosi.git Fix version bump check if image version was passed on CLI We only want to generate a new version if no version was specified on the CLI. To do that we need to check that the version on the CLI is None, not the opposite. Replaces #3721 --- diff --git a/mkosi/config.py b/mkosi/config.py index 0172ebe8b..7f25484f1 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -5147,7 +5147,7 @@ def parse_config( if ( ((args.auto_bump and args.verb.needs_build()) or args.verb == Verb.bump) - and context.cli.get("image_version") is not None + and context.cli.get("image_version") is None and configdir is not None ): context.cli["image_version"] = bump_image_version(configdir)