diff --git a/osc/util/debquery.py b/osc/util/debquery.py index cae217c1..3d56880f 100644 --- a/osc/util/debquery.py +++ b/osc/util/debquery.py @@ -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