[dak/master] dont output tag lines from metadata table, only external overrides
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
dak/generate_packages_sources2.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dak/generate_packages_sources2.py b/dak/generate_packages_sources2.py
index 8908e3c..34ffab5 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,7 +163,7 @@ 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)
--
1.7.2.5
Reply to: