mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-06 15:43:39 +02:00
- osc build: properly evaluate debuginfo status in Buildinfo
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user