]> git.ipfire.org Git - people/ms/pakfire.git/commitdiff
pakfire-builder: shell: Allow passing --install multiple times
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 12:18:08 +0000 (12:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 12:18:08 +0000 (12:18 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/pakfire-builder.in

index 34f62eb47f8a4854187960a3ba21b8502de93273..88113db384b600ff853b963b817d38dc65f63fc3 100644 (file)
@@ -142,7 +142,7 @@ class Cli(object):
                shell = subparsers.add_parser("shell", help=_("Go into a build shell"))
                shell.add_argument("--disable-snapshot", action="store_true",
                        help=_("Disable using snapshots"))
-               shell.add_argument("--install", nargs="*",
+               shell.add_argument("--install", action="append", default=[],
                        help=_("Install additional packages"),
                )
                shell.set_defaults(func=self._shell)