mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
- added --job option to the do_build() command. (this option will be passed to build script)
This commit is contained in:
parent
4c6ce9ae56
commit
2440bed285
@ -230,6 +230,8 @@ def main(opts, argv):
|
||||
buildargs.append('--noinit')
|
||||
if not opts.no_changelog:
|
||||
buildargs.append('--changelog')
|
||||
if opts.jobs:
|
||||
buildargs.append('--jobs %s' % opts.jobs)
|
||||
buildargs = ' '.join(buildargs)
|
||||
|
||||
prj = store_read_project(os.curdir)
|
||||
|
@ -1474,6 +1474,8 @@ class Osc(cmdln.Cmdln):
|
||||
help='Save built packages into this directory')
|
||||
@cmdln.option('-x', '--extra-pkgs', metavar='PAC', action='append',
|
||||
help='Add this package when installing the build-root')
|
||||
@cmdln.option('-j', '--jobs', metavar='N',
|
||||
help='Compile with N jobs')
|
||||
@cmdln.option('--userootforbuild', action='store_true',
|
||||
help='Run build as root. The default is to build as '
|
||||
'unprivileged user. Note that a line "# norootforbuild" '
|
||||
|
Loading…
Reference in New Issue
Block a user