1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-26 04:02:11 +01:00

make iceream configurable in config file

This commit is contained in:
Ludwig Nussel 2010-02-11 13:47:32 +01:00
parent 4a18c18d34
commit 68dd680cf3

View File

@ -339,10 +339,16 @@ def main(opts, argv):
else:
if config['build-jobs'] > 1:
buildargs.append('--jobs %s' % config['build-jobs'])
if opts.icecream:
buildargs.append('--icecream %s' % opts.icecream)
xp.append('icecream')
xp.append('gcc-c++')
if opts.icecream or 'icecream' in config:
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 opts.ccache:
buildargs.append('--ccache')
xp.append('ccache')