X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fmake_changelog.py;h=8039bfab7ea8c588673013757dfba8ac0ed793f1;hb=0086ca02b521ce6bb625ac3cea14471763016798;hp=8fa172f63299b8ecdb6d7bfdb26e228e5531ca12;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/make_changelog.py b/dak/make_changelog.py index 8fa172f6..8039bfab 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 @@ -221,8 +222,7 @@ def export_files(session, pool, clpool, temppath): print 'make-changelog: unable to extract %s for %s_%s' \ % (os.path.basename(f), p, sources[p][s][0]) else: - print 'make-changelog: unable to unpack %s_%s' % (p, sources[p][s][0]) - continue + print 'make-changelog: unable to unpack %s_%s: %s' % (p, sources[p][s][0], output) rmtree(tempdir)