+ f = gzip.open(Cnf["Dir::Root"] + "dists/%s/Contents-udeb.gz" % (s), "w")
+
+ if header:
+ f.write(header)
+
+ for contents in q.getresult():
+ f.write(contents[0] + "\t\t\t" + contents[-1] + "\n")
+
+ f.close()
+
+ # Once more, with non-free
+ section_id = database.get_section_id('non-free/debian-installer') # all udebs should be here)
+
+ if section_id != -1:
+ q = projectB.query("""SELECT p.path||'/'||n.file, comma_separated_list(s.section||'/'||b.package) FROM content_associations c JOIN content_file_paths p ON (c.filepath=p.id) JOIN content_file_names n ON (c.filename=n.id) JOIN binaries b ON (b.id=c.binary_pkg) JOIN bin_associations ba ON (b.id=ba.bin) JOIN override o ON (o.package=b.package) JOIN section s ON (s.id=o.section) WHERE s.id = '%d' AND ba.suite = '%d' AND b.type = 'udeb' GROUP BY (p.path||'/'||n.file)""" % (section_id, suite_id))
+
+ f = gzip.open(Cnf["Dir::Root"] + "dists/%s/Contents-udeb-nf.gz" % (s), "w")
+
+ if header:
+ f.write(header)
+
+ for contents in q.getresult():
+ f.write(contents[0] + "\t\t\t" + contents[-1] + "\n")
+
+ f.close()