From: Roger Leigh Date: Sun, 18 Jan 2009 12:33:58 +0000 (+0000) Subject: cruft_report: Use debversion operators in place of versioncmp X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61a732364e29b4db275baad97ca346f7dc160e50;p=dak cruft_report: Use debversion operators in place of versioncmp --- diff --git a/dak/cruft_report.py b/dak/cruft_report.py index fab47bf0..5a2abd61 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -182,8 +182,8 @@ SELECT s.source, s.version AS experimental, s2.version AS unstable FROM src_associations sa, source s, source s2, src_associations sa2 WHERE sa.suite = %s AND sa2.suite = %d AND sa.source = s.id AND sa2.source = s2.id AND s.source = s2.source - AND versioncmp(s.version, s2.version) < 0""" % (experimental_id, - database.get_suite_id("unstable"))) + AND s.version < s2.version""" % (experimental_id, + database.get_suite_id("unstable"))) ql = q.getresult() if ql: nviu_to_remove = []