]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix BootProtocols parsing 338/head
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 17 May 2019 04:05:35 +0000 (21:05 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 24 May 2019 19:41:16 +0000 (12:41 -0700)
Mark it with the same action as other lists, otherwise its parsing from
a config file is broken.

mkosi

diff --git a/mkosi b/mkosi
index 7551d02272865b8edd4d7e2d399e7bbe18c99462..35279971157404c8c1464a50d1b2122ce5a8d858 100755 (executable)
--- a/mkosi
+++ b/mkosi
@@ -3208,7 +3208,7 @@ def create_parser() -> ArgumentParserMkosi:
                        help='Do not run tests as part of build script, if supported')
     group.add_argument("--with-tests", action=BooleanAction, default=True, help=argparse.SUPPRESS)  # Compatibility option
     group.add_argument("--cache", dest='cache_path', help='Package cache path', metavar='PATH')
-    group.add_argument("--extra-tree", action='append', dest='extra_trees', default=[],
+    group.add_argument("--extra-tree", action=CommaDelimitedListAction, dest='extra_trees', default=[],
                        help='Copy an extra tree on top of image', metavar='PATH')
     group.add_argument("--skeleton-tree", action='append', dest='skeleton_trees', default=[],
                        help='Use a skeleton tree to bootstrap the image before installing anything', metavar='PATH')