mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-26 22:56:15 +01:00
- build debuginfo packages if this is enabled in the project/package meta (this partly fixes #421390)
This commit is contained in:
parent
88e8d5a3a8
commit
bb254bef2b
@ -83,6 +83,10 @@ class Buildinfo:
|
||||
break
|
||||
|
||||
self.buildarch = root.find('arch').text
|
||||
if root.find('debuginfo') != None:
|
||||
self.debuginfo = root.find('debuginfo').text
|
||||
else:
|
||||
self.debuginfo = 0
|
||||
|
||||
self.deps = []
|
||||
for node in root.findall('bdep'):
|
||||
@ -256,7 +260,6 @@ def main(opts, argv):
|
||||
buildargs.append('--baselibs')
|
||||
if opts.debuginfo:
|
||||
buildargs.append('--debug')
|
||||
buildargs = ' '.join(buildargs)
|
||||
|
||||
if opts.local_package:
|
||||
pac = '_repository'
|
||||
@ -325,6 +328,9 @@ def main(opts, argv):
|
||||
bi_file.flush()
|
||||
|
||||
bi = Buildinfo(bi_file.name, apiurl)
|
||||
if bi.debuginfo:
|
||||
buildargs.append('--debug')
|
||||
buildargs = ' '.join(set(buildargs))
|
||||
|
||||
# real arch of this machine
|
||||
# vs.
|
||||
|
Loading…
Reference in New Issue
Block a user