]> err.no Git - dak/commitdiff
archive must not be a string
authorLuca Falavigna <dktrkranz@debian.org>
Mon, 29 Apr 2013 13:01:31 +0000 (13:01 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Mon, 29 Apr 2013 13:01:31 +0000 (13:01 +0000)
dak/make_changelog.py

index b904deaa5e7899b19c8118afb05cbec95d76fec7..8f7453c9c2475b1205034c21184e6d3aaa2a30fa 100755 (executable)
@@ -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)