1
0
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:
Olaf Kirch 2009-03-12 16:24:53 +00:00
parent ce8027fc14
commit 98d7a04b97

View File

@ -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