From: Torsten Werner Date: Wed, 7 Jul 2010 07:38:08 +0000 (+0000) Subject: show-new: close ressources earlier X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=12aa2490c932a28cdd6634ce0ba1925d451f1cba;p=dak.git show-new: close ressources earlier Signed-off-by: Torsten Werner --- diff --git a/dak/show_new.py b/dak/show_new.py index 9cb08901..3c0b0467 100755 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -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() ################################################################################