"path",
"target",
"build_id",
+ "interactive",
"disable_snapshot",
"disable_ccache",
"disable_tests",
const char* path = NULL;
const char* target = NULL;
const char* build_id = NULL;
+ int interactive = 0;
int disable_snapshot = 0;
int disable_ccache = 0;
int disable_tests = 0;
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|zzppp", kwlist, &path, &target,
- &build_id, &disable_snapshot, &disable_ccache, &disable_tests))
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|zzpppp", kwlist, &path, &target,
+ &build_id, &interactive, &disable_snapshot, &disable_ccache, &disable_tests))
return NULL;
int flags = 0;
+ if (interactive)
+ flags |= PAKFIRE_BUILD_INTERACTIVE;
+
// Disable snapshot if requested
if (disable_snapshot)
flags |= PAKFIRE_BUILD_DISABLE_SNAPSHOT;
help=_("Build ID"))
build.add_argument("--resultdir", nargs="?",
help=_("Path were the output files should be copied to"))
- build.add_argument("--after-shell", action="store_true",
- help=_("Run a shell after a successful build"))
+ build.add_argument("--non-interactive", action="store_true",
+ help=_("Disables running a shell in case the build fails"))
build.add_argument("--skip-install-test", action="store_true",
help=_("Do not perform the install test"))
build.add_argument("--disable-ccache", action="store_true",
for package in packages:
p.build(
package,
+ interactive=not ns.non_interactive,
build_id="%s" % ns.build_id if ns.build_id else None,
disable_ccache=ns.disable_ccache,
disable_snapshot=ns.disable_snapshot,