From 12aa2490c932a28cdd6634ce0ba1925d451f1cba Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Wed, 7 Jul 2010 07:38:08 +0000 Subject: [PATCH 1/1] show-new: close ressources earlier Signed-off-by: Torsten Werner --- dak/show_new.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() ################################################################################ -- 2.39.2