1
0
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:
Marcus Hüwe
2008-04-24 09:00:23 +00:00
parent 4c6ce9ae56
commit 2440bed285
2 changed files with 4 additions and 0 deletions

View File

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

View File

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