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:
parent
61cc90b31b
commit
eb96e53784
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user