From: Luca Falavigna Date: Mon, 29 Apr 2013 13:01:31 +0000 (+0000) Subject: archive must not be a string X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=06e99163b927ed02096fd144e7b909a495337082;p=dak.git archive must not be a string --- diff --git a/dak/make_changelog.py b/dak/make_changelog.py index b904deaa..8f7453c9 100755 --- a/dak/make_changelog.py +++ b/dak/make_changelog.py @@ -322,8 +322,8 @@ def main(): session = DBConn().session() if export: - (archive, exportpath) = session.query(Archive.archive_name, Archive.changelog). \ - filter_by(archive_name=Options['Archive']).one() + archive = session.query(Archive).filter_by(archive_name=Options['Archive']).one() + exportpath = archive.changelog if exportpath: export_files(session, archive, exportpath, progress) generate_export_filelist(exportpath)