1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 13:18:42 +02:00

add support for more build options

--icecream
--ccache
--with
--without
This commit is contained in:
Ludwig Nussel
2008-12-11 11:36:07 +00:00
parent eb96e53784
commit e33b48f5b0
2 changed files with 29 additions and 0 deletions

View File

@@ -240,6 +240,7 @@ def main(opts, argv):
arch = argv[1]
build_descr = argv[2]
crossbuild = False
xp = []
build_type = os.path.splitext(build_descr)[1][1:]
if build_type not in ['spec', 'dsc', 'kiwi']:
@@ -260,10 +261,23 @@ def main(opts, argv):
buildargs.append('--changelog')
if opts.jobs:
buildargs.append('--jobs %s' % opts.jobs)
if opts.icecream:
buildargs.append('--icecream %s' % opts.icecream)
xp.append('icecream')
if opts.ccache:
buildargs.append('--ccache')
xp.append('ccache')
if opts.baselibs:
buildargs.append('--baselibs')
if opts.debuginfo:
buildargs.append('--debug')
if opts._with:
buildargs.append('--with %s' % opts._with)
if opts.without:
buildargs.append('--without %s' % opts.without)
# FIXME: quoting
# if opts.define:
# buildargs.append('--define "%s"' % opts.define)
if opts.local_package:
pac = '_repository'
@@ -299,6 +313,10 @@ def main(opts, argv):
else:
extra_pkgs = opts.extra_pkgs
if xp:
extra_pkgs += xp
print 'Getting buildinfo from server'
bi_file = NamedTemporaryFile(suffix='.xml', prefix='buildinfo.', dir = '/tmp')
try: