]> git.decadent.org.uk Git - dak.git/commitdiff
generate_translations: do not include some descriptions more than once
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 11 Mar 2012 11:25:05 +0000 (11:25 +0000)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 11 Mar 2012 11:25:05 +0000 (11:25 +0000)
By no longer using s.source in the GROUP BY clause, identical
descriptions for binary packages built by more than one source
no longer appear multiple times in Translation-en.

Bug: http://bugs.debian.org/660543

dak/generate_packages_sources2.py

index 6ef9fd6cba8551d2c559e322d879cceb191b1a65..151920c1fda001a37733c78f9a5214b1c2694671 100755 (executable)
@@ -273,8 +273,8 @@ FROM binaries b
   JOIN source s ON b.source = s.id
 
 WHERE ba.suite = :suite AND o.component = :component
-GROUP BY s.source, b.package, bm_description_md5.value, bm_description.value
-ORDER BY s.source, b.package, bm_description_md5.value
+GROUP BY b.package, bm_description_md5.value, bm_description.value
+ORDER BY MIN(s.source), b.package, bm_description_md5.value
 """
 
 def generate_translations(suite_id, component_id):