1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

- osc build: if the --jobs option is omitted use '--jobs #<available processors>' (patch by Cristian Rodriguez <crrodriguez@suse.de>)

This commit is contained in:
Marcus Hüwe 2009-09-20 15:59:46 +00:00
parent 0c5a9528e3
commit 2123e136e0

View File

@ -297,6 +297,10 @@ def main(opts, argv):
buildargs.append('--changelog')
if opts.jobs:
buildargs.append('--jobs %s' % opts.jobs)
else:
smp_mflags = os.sysconf('SC_NPROCESSORS_ONLN')
if smp_mflags > 1:
buildargs.append('--jobs %s' % smp_mflags)
if opts.icecream:
buildargs.append('--icecream %s' % opts.icecream)
xp.append('icecream')