]> git.decadent.org.uk Git - dak.git/commitdiff
show-new: close ressources earlier
authorTorsten Werner <twerner@debian.org>
Wed, 7 Jul 2010 07:38:08 +0000 (07:38 +0000)
committerTorsten Werner <twerner@debian.org>
Wed, 7 Jul 2010 07:38:08 +0000 (07:38 +0000)
Signed-off-by: Torsten Werner <twerner@debian.org>
dak/show_new.py

index 9cb0890199d7210a985f6eee946c9d3d7f3288b7..3c0b046738017f003b7f264d3d493a612b28d764 100755 (executable)
@@ -170,6 +170,7 @@ def do_pkg(changes_file):
         else:
             u.source_file_checks(deb_filename, session)
             u.check_source_against_db(deb_filename, session)
+    session.close()
     u.pkg.changes["suite"] = u.pkg.changes["distribution"]
 
     new = determine_new(u.pkg.changes, files, 0)
@@ -197,7 +198,8 @@ def do_pkg(changes_file):
             print >> outfile, examine_package.check_deb(distribution, fn)
 
         print >> outfile, html_footer()
-    session.close()
+
+       outfile.close()
 
 ################################################################################