]> git.decadent.org.uk Git - dak.git/commitdiff
Add order_by(DBSource.source) to DejavuBinary.
authorTorsten Werner <twerner@debian.org>
Mon, 31 Jan 2011 20:24:39 +0000 (21:24 +0100)
committerTorsten Werner <twerner@debian.org>
Mon, 31 Jan 2011 20:24:39 +0000 (21:24 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/cruft.py

index cea4f23a869333411d7e3c0fbbd05be6c6023fcb..f060085d72f98478bbc70e64d47292adaec2ce94 100644 (file)
@@ -92,7 +92,7 @@ class DejavuBinary(object):
         # are in the right suite.
         bin_query = suite.binaries.filter_by(package = package).subquery()
         src_query = session.query(DBSource.source).with_parent(suite). \
-            join(bin_query).group_by(DBSource.source)
+            join(bin_query).order_by(DBSource.source).group_by(DBSource.source)
         self.sources = []
         if src_query.count() > 1:
             for source, in src_query: