1
0
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:
Marcus Huewe 2019-01-27 19:43:38 +01:00
parent cd5f46984d
commit c534d7e990

View File

@ -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