projects
/
dak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d236cc
)
cruft_report: Use debversion operators in place of versioncmp
author
Roger Leigh
<rleigh@debian.org>
Sun, 18 Jan 2009 12:33:58 +0000
(12:33 +0000)
committer
Joerg Jaspert
<joerg@debian.org>
Sun, 18 Jan 2009 15:14:51 +0000
(16:14 +0100)
dak/cruft_report.py
patch
|
blob
|
history
diff --git
a/dak/cruft_report.py
b/dak/cruft_report.py
index fab47bf056d72bf910fd774ed48c45e584487ce6..5a2abd61c2a5f77111839d5c1c4d7ce4a7a8fea8 100755
(executable)
--- 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 = []