q=self.projectB.query("SELECT b.id, b.version, f.filename, l.path, c.name FROM binaries b, bin_associations ba, suite s, location l, component c, architecture a, files f WHERE b.package = '%s' AND s.suite_name = '%s' AND (a.arch_string = '%s' OR a.arch_string = 'all') AND ba.bin = b.id AND ba.suite = s.id AND b.architecture = a.id AND f.location = l.id AND l.component = c.id AND b.file = f.id"
q=self.projectB.query("SELECT b.id FROM binaries b, architecture a WHERE b.package = '%s' AND b.version = '%s' AND a.arch_string = '%s' AND a.id = b.architecture"%(files[file]["package"],files[file]["version"],files[file]["architecture"]))
ifq.getresult()!=[]:
q=self.projectB.query("""
SELECT b.id FROM binaries b, architecture a
WHERE b.package = '%s' AND b.version = '%s' AND a.arch_string = '%s'
AND a.id = b.architecture"""
%(files[file]["package"],
files[file]["version"],
files[file]["architecture"]))
ifq.getresult():
self.reject("can not overwrite existing copy of '%s' already in the archive."%(file));
"""Ensure source is newer than existing source in target suites."""
self.reject_message="";
changes=self.pkg.changes;
dsc=self.pkg.dsc;
package=dsc.get("source");
new_version=dsc.get("version");
forsuiteinchanges["distribution"].keys():
q=self.projectB.query("SELECT s.version FROM source s, src_associations sa, suite su WHERE s.source = '%s' AND su.suite_name = '%s' AND sa.source = s.id AND sa.suite = su.id"
q=self.projectB.query("SELECT l.path, f.filename, l.type, f.id, l.id FROM files f, location l WHERE (f.filename ~ '/%s$' OR f.filename = '%s') AND l.id = f.location"%(utils.regex_safe(dsc_file),dsc_file));