[Secure-testing-commits] r28694 - lib/python

Holger Levsen holger at moszumanska.debian.org
Wed Sep 10 15:28:59 UTC 2014


Author: holger
Date: 2014-09-10 15:28:59 +0000 (Wed, 10 Sep 2014)
New Revision: 28694

Modified:
   lib/python/security_db.py
Log:
revert file accidently commited as part of r28693

Modified: lib/python/security_db.py
===================================================================
--- lib/python/security_db.py	2014-09-10 15:25:22 UTC (rev 28693)
+++ lib/python/security_db.py	2014-09-10 15:28:59 UTC (rev 28694)
@@ -1570,10 +1570,10 @@
             """SELECT string_list(release) AS releases, version
             FROM (SELECT release, version FROM source_packages
             WHERE name = ?
-            AND release IN ('squeeze', 'wheezy', 'jessie', 'sid'))
+            AND release IN ('squeeze', 'wheezy', 'jessie', 'sid')
+            ORDER BY release_to_number(release))
             GROUP BY version""", (pkg,)):
             yield releases.split(', '), version
-#            ORDER BY release_to_number(release))
 
     def getBinaryPackageVersions(self, cursor, pkg):
         """A generator which returns tuples (RELEASE-LIST,
@@ -1585,10 +1585,10 @@
             FROM (SELECT release, source, version, string_set(archs) AS archs
             FROM binary_packages
             WHERE name = ?
-            GROUP BY release, source, version)
+            GROUP BY release, source, version
+            ORDER BY release_to_number(release))
             GROUP BY source, version, archs""", (pkg,)):
             yield releases.split(', '), source, version, archs.split(',')
-#            ORDER BY release_to_number(release))
 
     def getBinaryPackagesForSource(self, cursor, pkg):
         """A generator which returns tuples (PACKAGES, RELEASE-LIST,




More information about the Secure-testing-commits mailing list