1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-06 07:33:39 +02:00

Merge pull request #791 from adrianschroeter/shell_cmd

complete --shell-cmd support
This commit is contained in:
Marco Strigl
2020-05-12 13:19:14 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -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')

View File

@@ -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