Author: fw Date: 2005-09-23 11:45:47 +0000 (Fri, 23 Sep 2005) New Revision: 2133 Modified: lib/python/security_db.py Log: lib/python/security_db.py (DB.getBinaryPackagesForSource): Differentiate by architectures. Modified: lib/python/security_db.py ==================================================================--- lib/python/security_db.py 2005-09-23 11:29:09 UTC (rev 2132) +++ lib/python/security_db.py 2005-09-23 11:45:47 UTC (rev 2133) @@ -1226,19 +1226,23 @@ VERSION), the available binary packages built from the source package pkg.""" - for (packages, releases, version) in cursor.execute( - """SELECT string_list(package) AS packages, releases, version - FROM (SELECT package, string_list(rel) AS releases, version + for (packages, releases, version, archs) in cursor.execute( + """SELECT string_list(package) AS packages, releases, version, + archs + FROM (SELECT package, string_list(rel) AS releases, version, archs FROM (SELECT name AS package, - release_name(release, subrelease, archive) AS rel, version + release_name(release, subrelease, archive) AS rel, + version, string_set(archs) AS archs FROM binary_packages WHERE source = ? - ORDER BY release_to_number(release)) - GROUP BY package, version + GROUP BY name, release, subrelease, archive, version + ORDER BY release_to_number(release), subrelease) + GROUP BY package, version, archs ORDER BY package) - GROUP BY releases, version + GROUP BY releases, version, archs ORDER BY version COLLATE version""", (pkg,)): - yield packages.split('', ''), releases.split('', ''), version + yield (packages.split('', ''), releases.split('', ''), + archs.split('',''), version) def getSourcePackages(self, cursor, bug): """A generator which returns tuples (SOURCE-PACKAGE,