From 12e0b6711790bf24072bd3852fb983c70ed07e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 12 May 2020 09:19:01 +0200 Subject: [PATCH] complete --shell-cmd support parts to get it working --- osc/build.py | 4 ++++ osc/commandline.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/osc/build.py b/osc/build.py index 4f6eeb93..7d2b8e6a 100644 --- a/osc/build.py +++ b/osc/build.py @@ -725,6 +725,10 @@ def main(apiurl, opts, argv): if opts.shell: buildargs.append("--shell") + if opts.shell_cmd: + buildargs.append("--shell-cmd") + buildargs.append(opts.shell_cmd) + if opts.noinit: buildargs.append('--noinit') diff --git a/osc/commandline.py b/osc/commandline.py index b5885eaa..c7bddc96 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -6406,10 +6406,14 @@ Please submit there instead, or use --nodevelproject to force direct submission. osc shell [OPTS] REPOSITORY ARCH + Run a single command inside of the build environment: + osc shell --shell-cmd=COMMAND [OPTS] REPOSITORY ARCH + OPTS may be --noinit # for faster run --shell-cmd=COMMAND + --extra-pkgs=PACKAGE # install additional packages To clean up the build environment run