]> git.decadent.org.uk Git - dak.git/commitdiff
generate-packages-sources2: Add external overrides
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 26 Mar 2011 20:40:05 +0000 (20:40 +0000)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 26 Mar 2011 20:40:05 +0000 (20:40 +0000)
Signed-off-by: Ansgar Burchardt <ansgar@debian.org>
dak/generate_packages_sources2.py

index ea3c0e53b21866ab40dcff27f75171121d6fb341..c23ede9bcd3a2a246e3a1a71d76b3a935a825642 100755 (executable)
@@ -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