mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-25 15:48:54 +02:00
- added --job option to the do_build() command. (this option will be passed to build script)
This commit is contained in:
@@ -230,6 +230,8 @@ def main(opts, argv):
|
|||||||
buildargs.append('--noinit')
|
buildargs.append('--noinit')
|
||||||
if not opts.no_changelog:
|
if not opts.no_changelog:
|
||||||
buildargs.append('--changelog')
|
buildargs.append('--changelog')
|
||||||
|
if opts.jobs:
|
||||||
|
buildargs.append('--jobs %s' % opts.jobs)
|
||||||
buildargs = ' '.join(buildargs)
|
buildargs = ' '.join(buildargs)
|
||||||
|
|
||||||
prj = store_read_project(os.curdir)
|
prj = store_read_project(os.curdir)
|
||||||
|
@@ -1474,6 +1474,8 @@ class Osc(cmdln.Cmdln):
|
|||||||
help='Save built packages into this directory')
|
help='Save built packages into this directory')
|
||||||
@cmdln.option('-x', '--extra-pkgs', metavar='PAC', action='append',
|
@cmdln.option('-x', '--extra-pkgs', metavar='PAC', action='append',
|
||||||
help='Add this package when installing the build-root')
|
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',
|
@cmdln.option('--userootforbuild', action='store_true',
|
||||||
help='Run build as root. The default is to build as '
|
help='Run build as root. The default is to build as '
|
||||||
'unprivileged user. Note that a line "# norootforbuild" '
|
'unprivileged user. Note that a line "# norootforbuild" '
|
||||||
|
Reference in New Issue
Block a user