mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
Fix logic error in DebQuery.vercmp
res is never None, because DebQuery.rpmvercmp always returns -1, 0, or 1.
This commit is contained in:
parent
cd5f46984d
commit
c534d7e990
@ -116,7 +116,7 @@ class DebQuery(packagequery.PackageQuery, packagequery.PackageQueryResult):
|
||||
if res != 0:
|
||||
return res
|
||||
res = DebQuery.debvercmp(self.version(), debq.version())
|
||||
if res != None:
|
||||
if res != 0:
|
||||
return res
|
||||
res = DebQuery.debvercmp(self.release(), debq.release())
|
||||
return res
|
||||
|
Loading…
Reference in New Issue
Block a user