]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix version bump check if image version was passed on CLI
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 26 May 2025 13:44:42 +0000 (15:44 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Mon, 26 May 2025 14:25:40 +0000 (16:25 +0200)
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

mkosi/config.py

index 0172ebe8bfd6afb4f88a26515d05eff64b727bde..7f25484f1d038fe494c60745f9a0e43371bcd123 100644 (file)
@@ -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)