X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fgenerate_packages_sources2.py;h=34ffab57ae052261bf82d0eb6ae4adb1fbcf814d;hb=8cc3abc9bfb1145151bacc92ba253df255401e6b;hp=2b792f3c9ad7ecc098dc426fb89761bc000b65fe;hpb=2d1714245f6df36ec2c7f2d7154b23e331f150a5;p=dak.git diff --git a/dak/generate_packages_sources2.py b/dak/generate_packages_sources2.py index 2b792f3c..34ffab57 100755 --- a/dak/generate_packages_sources2.py +++ b/dak/generate_packages_sources2.py @@ -123,6 +123,9 @@ def generate_sources(suite_id, component_id): ############################################################################# +# We currently filter out the "Tag" line. They are set by external overrides and +# NOT by the maintainer. And actually having it set by maintainer means we output +# it twice at the moment -> which breaks dselect. # Here be large dragons. _packages_query = R""" WITH @@ -160,12 +163,14 @@ SELECT JOIN metadata_keys mk ON mk.key_id = bm.key_id WHERE bm.bin_id = tmp.binary_id - AND key != 'Section' AND key != 'Priority' + AND key != 'Section' AND key != 'Priority' AND key != 'Tag' ) || COALESCE(E'\n' || (SELECT STRING_AGG(key || '\: ' || value, E'\n' ORDER BY key) FROM external_overrides eo - WHERE eo.package = tmp.package + WHERE + eo.package = tmp.package + AND eo.suite = :overridesuite AND eo.component = :component ), '') || E'\nSection\: ' || sec.section || E'\nPriority\: ' || pri.priority @@ -192,7 +197,7 @@ WHERE AND o.type = :type_id AND o.suite = :overridesuite AND o.component = :component -ORDER BY tmp.package, tmp.version +ORDER BY tmp.source, tmp.package, tmp.version """ def generate_packages(suite_id, component_id, architecture_id, type_name): @@ -280,6 +285,8 @@ def main(): for c in component_ids: pool.apply_async(generate_sources, [s.suite_id, c], callback=parse_results) for a in s.architectures: + if a == 'source': + continue pool.apply_async(generate_packages, [s.suite_id, c, a.arch_id, 'deb'], callback=parse_results) pool.apply_async(generate_packages, [s.suite_id, c, a.arch_id, 'udeb'], callback=parse_results)