mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-08 20:15:47 +01:00
- allow to use "osc chroot" also with lxc build-type
This commit is contained in:
parent
4dc236dea4
commit
1509db3ff1
@ -5855,10 +5855,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
@cmdln.option('-o', '--offline', action='store_true',
|
@cmdln.option('-o', '--offline', action='store_true',
|
||||||
help='Use cached data without contacting the api server')
|
help='Use cached data without contacting the api server')
|
||||||
def do_chroot(self, subcmd, opts, *args):
|
def do_chroot(self, subcmd, opts, *args):
|
||||||
"""${cmd_name}: chroot into the buildchroot
|
"""${cmd_name}: opens a shell inside of the build root
|
||||||
|
|
||||||
chroot into the buildchroot for the given repository, arch and build description
|
chroot into the build root for the given repository, arch and build description
|
||||||
(NOTE: this command does not work if "build-type" is set in the config)
|
(NOTE: this command does not work if a VM is used)
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
osc chroot [OPTS] REPOSITORY ARCH BUILD_DESCR
|
osc chroot [OPTS] REPOSITORY ARCH BUILD_DESCR
|
||||||
@ -5870,7 +5870,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
"""
|
"""
|
||||||
if len(args) > 3:
|
if len(args) > 3:
|
||||||
raise oscerr.WrongArgs('Too many arguments')
|
raise oscerr.WrongArgs('Too many arguments')
|
||||||
if conf.config['build-type']:
|
if conf.config['build-type'] and conf.config['build-type'] != "lxc":
|
||||||
print('Not implemented for VMs', file=sys.stderr)
|
print('Not implemented for VMs', file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user