1
0
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:
Daniel Mach 2024-05-10 11:01:21 +02:00
parent 798af31064
commit cf154b3465
2 changed files with 2 additions and 2 deletions

View File

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

View File

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