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

- fixed indention

- added 'icecream' to  config dict
This commit is contained in:
Marcus Huewe 2010-02-12 11:55:09 +01:00
parent d5ae3ef2b4
commit 8670d82fad
2 changed files with 8 additions and 8 deletions

View File

@ -335,19 +335,18 @@ def main(opts, argv):
build_root = opts.root
if opts.jobs:
buildargs.append('--jobs %s' % opts.jobs)
else:
if config['build-jobs'] > 1:
buildargs.append('--jobs %s' % config['build-jobs'])
if opts.icecream or 'icecream' in config:
elif config['build-jobs'] > 1:
buildargs.append('--jobs %s' % config['build-jobs'])
if opts.icecream or config['icecream']:
if opts.icecream:
num = opts.icecream
else:
num = config['icecream']
if num > 0:
buildargs.append('--icecream %s' % num)
xp.append('icecream')
xp.append('gcc-c++')
if num > 0:
buildargs.append('--icecream %s' % num)
xp.append('icecream')
xp.append('gcc-c++')
if opts.ccache:
buildargs.append('--ccache')
xp.append('ccache')

View File

@ -75,6 +75,7 @@ DEFAULTS = { 'apiurl': 'https://api.opensuse.org',
'build-memory': '',# required for VM builds
'build-swap': '', # optional for VM builds
'build-jobs': os.sysconf('SC_NPROCESSORS_ONLN'), # compile with N jobs
'icecream': '0',
'debug': '0',
'http_debug': '0',