[dak/master] show-new: close ressources earlier
Signed-off-by: Torsten Werner <twerner@debian.org>
---
dak/show_new.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dak/show_new.py b/dak/show_new.py
index 9cb0890..3c0b046 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()
################################################################################
--
1.5.6.5
Reply to: