mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-14 00:06:15 +01:00
- fixed implicit release for deb packages
This commit is contained in:
parent
4dc6e956c1
commit
6471a1aabf
@ -45,7 +45,7 @@ class DebQuery(packagequery.PackageQuery):
|
||||
self.fields['version'] = versrel[0]
|
||||
self.fields['release'] = versrel[1]
|
||||
else:
|
||||
self.fields['release'] = '0'
|
||||
self.fields['release'] = None
|
||||
verep = self.fields['version'].split(':', 1)
|
||||
if len(verep) == 2:
|
||||
self.fields['epoch'] = verep[0]
|
||||
@ -63,7 +63,7 @@ class DebQuery(packagequery.PackageQuery):
|
||||
if res != 0:
|
||||
return res
|
||||
res = DebQuery.debvercmp(self.version(), debq.version())
|
||||
if res != 0:
|
||||
if res != None:
|
||||
return res
|
||||
res = DebQuery.debvercmp(self.release(), debq.release())
|
||||
return res
|
||||
|
Loading…
Reference in New Issue
Block a user