mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
Change 'build' command to pass '--jobs' option to 'build' tool only if 'build_jobs' > 0
This commit is contained in:
parent
798af31064
commit
cf154b3465
@ -816,7 +816,7 @@ def main(apiurl, store, opts, argv):
|
||||
buildargs.append('--threads=%s' % opts.threads)
|
||||
if opts.jobs:
|
||||
buildargs.append('--jobs=%s' % opts.jobs)
|
||||
elif config['build-jobs'] > 1:
|
||||
elif config['build-jobs'] > 0:
|
||||
buildargs.append('--jobs=%s' % config['build-jobs'])
|
||||
if opts.icecream or config['icecream'] != '0':
|
||||
if opts.icecream:
|
||||
|
@ -1014,7 +1014,7 @@ class Options(OscOptions):
|
||||
The number of parallel processes during the build.
|
||||
Defaults to the number of available CPU threads.
|
||||
|
||||
Passed as ``--jobs`` to the build tool.
|
||||
If the value is greater than ``0`` then it is passed as ``--jobs`` to the build tool.
|
||||
"""
|
||||
),
|
||||
ini_key="build-jobs",
|
||||
|
Loading…
Reference in New Issue
Block a user