# Add the binaries to stable (and remove it/them from proposed-updates)
forfileinfiles.keys():
iffiles[file]["type"]=="deb":
binNMU=0
package=files[file]["package"]
version=files[file]["version"]
architecture=files[file]["architecture"]
q=projectB.query("SELECT b.id FROM binaries b, architecture a WHERE b.package = '%s' AND b.version = '%s' AND (a.arch_string = '%s' OR a.arch_string = 'all') AND b.architecture = a.id"%(package,version,architecture))
que="SELECT b.version FROM binaries b JOIN bin_associations ba ON (b.id = ba.bin) JOIN suite su ON (ba.suite = su.id) WHERE b.package = '%s' AND (ba.suite = '%s')"%(package,suite_id)
q=projectB.query(que)
# Reduce the query results to a list of version numbers
ql=[i[0]foriinq.getresult()]
ifnotql:
daklib.utils.fubar("[INTERNAL ERROR] couldn't find '%s' (%s for %s architecture) in binaries table."%(package,version,architecture))