]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix --base-image and --base-packages combination
authorLuca Boccassi <luca.boccassi@microsoft.com>
Thu, 4 Nov 2021 12:59:33 +0000 (12:59 +0000)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 5 Nov 2021 10:25:51 +0000 (10:25 +0000)
args.base_packages defaults to 'True', so it's never 'None', so this
check was always false. Remove it.

mkosi/__init__.py

index a478fbcb97ed936d44a29cfbde7c55d36d4b526e..fed8d8daefb73cc92f55e57bc78ddbd8e0e9e855 100644 (file)
@@ -6312,7 +6312,7 @@ def load_args(args: argparse.Namespace) -> CommandLineArguments:
 
     # If we are building a sysext we don't want to add base packages to the
     # extension image, as they will already be in the base image.
-    if args.base_image is not None and args.base_packages is None:
+    if args.base_image is not None:
         args.base_packages = False
 
     return CommandLineArguments(**vars(args))