From: Ansgar Burchardt Date: Sat, 26 Mar 2011 20:40:05 +0000 (+0000) Subject: generate-packages-sources2: Add external overrides X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9e50e9ff24fe4c6afcc0b14fc717c549e9ce192;p=dak generate-packages-sources2: Add external overrides Signed-off-by: Ansgar Burchardt --- diff --git a/dak/generate_packages_sources2.py b/dak/generate_packages_sources2.py index ea3c0e53..c23ede9b 100755 --- a/dak/generate_packages_sources2.py +++ b/dak/generate_packages_sources2.py @@ -160,6 +160,11 @@ SELECT bm.bin_id = tmp.binary_id AND key != 'Section' AND key != 'Priority' ) + || COALESCE(E'\n' || (SELECT + STRING_AGG(key || '\: ' || value, E'\n' ORDER BY key) + FROM external_overrides eo + WHERE eo.package = tmp.package + ), '') || E'\nSection\: ' || sec.section || E'\nPriority\: ' || pri.priority || E'\nFilename\: pool/' || tmp.filename