From: Michael Tremer Date: Wed, 8 Dec 2021 20:49:58 +0000 (+0000) Subject: pakfire-builder: build: Add --non-interactive switch X-Git-Tag: 0.9.28~844 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f1dee2e2dd874fa988467698d0a3e4dca2712d4;p=pakfire.git pakfire-builder: build: Add --non-interactive switch Signed-off-by: Michael Tremer --- diff --git a/src/scripts/pakfire-builder.in b/src/scripts/pakfire-builder.in index d11f9bc61..e7fb98725 100644 --- a/src/scripts/pakfire-builder.in +++ b/src/scripts/pakfire-builder.in @@ -78,6 +78,8 @@ class Cli(object): help=_("Build ID")) build.add_argument("--resultdir", nargs="?", help=_("Path were the output files should be copied to")) + build.add_argument("--non-interactive", action="store_false", dest="interactive", + help=_("Run in non-interactive mode")) build.add_argument("--after-shell", action="store_true", help=_("Run a shell after a successful build")) build.add_argument("--skip-install-test", action="store_true", @@ -219,7 +221,7 @@ class Cli(object): p.build( package, build_id="%s" % ns.build_id if ns.build_id else None, - interactive=True, + interactive=ns.interactive, ) # Cleanup the temporary directory