X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=daklib%2Fcruft.py;h=a685bcb5545b27fb826a68b95db622190b109244;hb=731d594cc9032c1e889c90bc55092536c96e284c;hp=baa5efe9a1ca98f132902ff5ea7802e3861f25ea;hpb=4d15379ff67d213c08b94edca3634829436cb676;p=dak.git diff --git a/daklib/cruft.py b/daklib/cruft.py index baa5efe9..a685bcb5 100644 --- a/daklib/cruft.py +++ b/daklib/cruft.py @@ -47,6 +47,8 @@ def newer_version(lowersuite_name, highersuite_name, session): with_parent(lowersuite).group_by(DBSource.source).scalar() if lowerversion is not None: list.append((source, higherversion, lowerversion)) + + list.sort() return list def get_package_names(suite): @@ -92,7 +94,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: @@ -118,3 +120,4 @@ def report_multiple_source(suite): binary = DejavuBinary(suite, package) if binary.has_multiple_sources(): print binary + print