1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02: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? # are we building .rpm or .deb?
# need the right suffix for downloading # need the right suffix for downloading
# if a package named debhelper is in the dependencies, it must be .deb # 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' self.pacsuffix = 'rpm'
for node in root.findall('dep'): for node in root.findall('bdep'):
if node.text == 'debhelper': if node.get('name') == 'debhelper':
self.pacsuffix = 'deb' self.pacsuffix = 'deb'
break break