Skip to content

Commit

Permalink
Merge pull request #1562 from dmach/build-jobs
Browse files Browse the repository at this point in the history
Change 'build' command to pass '--jobs' option to 'build' tool only if 'build_jobs' > 0
  • Loading branch information
dmach committed May 10, 2024
2 parents 72e1896 + cf154b3 commit b2f4ea2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion osc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ def apiurl_aliases(self):
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",
Expand Down

0 comments on commit b2f4ea2

Please sign in to comment.