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

fixed detection of the build type (rpm or deb) - this was caused by the recent bs_repserver changes (r5566)

This commit is contained in:
Marcus Hüwe 2008-11-12 23:51:43 +00:00
parent bb254bef2b
commit bfe54fd4e0

View File

@ -76,9 +76,10 @@ class Buildinfo:
# are we building .rpm or .deb?
# need the right suffix for downloading
# if a package named debhelper is in the dependencies, it must be .deb
# XXX: shouldn't we deliver the type via the buildinfo?
self.pacsuffix = 'rpm'
for node in root.findall('dep'):
if node.text == 'debhelper':
for node in root.findall('bdep'):
if node.get('name') == 'debhelper':
self.pacsuffix = 'deb'
break