From 61a732364e29b4db275baad97ca346f7dc160e50 Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Sun, 18 Jan 2009 12:33:58 +0000 Subject: [PATCH] cruft_report: Use debversion operators in place of versioncmp --- dak/cruft_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = [] -- 2.39.5