1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- small fix in debuginfo handling (accidentally used a string in a bool expression...)

This commit is contained in:
Marcus Hüwe 2008-12-10 22:38:00 +00:00
parent 61cc90b31b
commit eb96e53784

View File

@ -88,10 +88,12 @@ class Buildinfo:
break
self.buildarch = root.find('arch').text
self.debuginfo = 0
if root.find('debuginfo') != None:
self.debuginfo = root.find('debuginfo').text
else:
self.debuginfo = 0
try:
self.debuginfo = int(root.find('debuginfo').text)
except ValueError:
pass
self.deps = []
for node in root.findall('bdep'):