mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 10:16:14 +01:00
- osc build: properly evaluate debuginfo status in Buildinfo
This commit is contained in:
parent
ce8027fc14
commit
98d7a04b97
@ -87,7 +87,10 @@ class Buildinfo:
|
||||
self.debuginfo = 0
|
||||
if root.find('debuginfo') != None:
|
||||
try:
|
||||
self.debuginfo = int(root.find('debuginfo').text)
|
||||
debug = root.find('debuginfo')
|
||||
print >>sys.stderr, "debuginfo = ", debug
|
||||
if debug.find('enable'):
|
||||
self.debuginfo = 1
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user