]> git.decadent.org.uk Git - dak.git/commitdiff
control_suite.py: fix britney changelog
authorLuca Falavigna <dktrkranz@debian.org>
Fri, 3 Sep 2010 09:57:22 +0000 (09:57 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Fri, 3 Sep 2010 09:57:22 +0000 (09:57 +0000)
Only display changelog entries for uploads targeted
unstable, experimental, and testing-proposed-updates

Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
dak/control_suite.py

index 03cb73d57909fde42f03480658b17586559e0005..aac6d717691dc9ea4c3940b5bfe1724cde158841 100755 (executable)
@@ -123,7 +123,8 @@ def britney_changelog(packages, suite, session):
     for p in new.keys():
         query += " source = '%s' AND version > '%s' AND version <= '%s'" \
                  % (p, new[p][1], new[p][0])
-        query += " AND architecture LIKE '%source%' OR"
+        query += " AND architecture LIKE '%source%' AND distribution in \
+                  ('unstable', 'experimental', 'testing-proposed-updates') OR"
     query += " False ORDER BY source, version DESC"
     q = session.execute(query)