From 973ed88e272000b2864fa33c554105e24de3a2bf Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Tue, 18 Jan 2011 08:18:06 +0000 Subject: [PATCH] make-changelog: only consider latest sources in suites Signed-off-by: Luca Falavigna --- dak/make_changelog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5