1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-14 16:26:13 +01:00

- fixed implicit release for deb packages

This commit is contained in:
Marcus Hüwe 2009-11-06 22:24:23 +00:00
parent 4dc6e956c1
commit 6471a1aabf

View File

@ -45,7 +45,7 @@ class DebQuery(packagequery.PackageQuery):
self.fields['version'] = versrel[0] self.fields['version'] = versrel[0]
self.fields['release'] = versrel[1] self.fields['release'] = versrel[1]
else: else:
self.fields['release'] = '0' self.fields['release'] = None
verep = self.fields['version'].split(':', 1) verep = self.fields['version'].split(':', 1)
if len(verep) == 2: if len(verep) == 2:
self.fields['epoch'] = verep[0] self.fields['epoch'] = verep[0]
@ -63,7 +63,7 @@ class DebQuery(packagequery.PackageQuery):
if res != 0: if res != 0:
return res return res
res = DebQuery.debvercmp(self.version(), debq.version()) res = DebQuery.debvercmp(self.version(), debq.version())
if res != 0: if res != None:
return res return res
res = DebQuery.debvercmp(self.release(), debq.release()) res = DebQuery.debvercmp(self.release(), debq.release())
return res return res