From: Luca Falavigna Date: Tue, 18 Jan 2011 08:18:06 +0000 (+0000) Subject: make-changelog: only consider latest sources in suites X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=973ed88e272000b2864fa33c554105e24de3a2bf;p=dak make-changelog: only consider latest sources in suites Signed-off-by: Luca Falavigna --- diff --git a/dak/make_changelog.py b/dak/make_changelog.py index 6fffb456..44aae522 100755 --- a/dak/make_changelog.py +++ b/dak/make_changelog.py @@ -166,8 +166,9 @@ def export_files(session, pool, clpool, temppath): """ sources = {} - query = """SELECT s.source, su.suite_name AS suite, s.version, f.filename + query = """SELECT DISTINCT s.source, su.suite_name AS suite, s.version, f.filename FROM source s + JOIN newest_source n ON n.source = s.source AND n.version = s.version JOIN src_associations sa ON sa.source = s.id JOIN suite su ON su.id = sa.suite JOIN files f ON f.id = s.file