From 5401a178a83c927e507b746979aab7ee17ffae84 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sat, 7 Jul 2012 18:11:56 -0600 Subject: [PATCH] daklib/contents.py: close db session after use --- daklib/contents.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daklib/contents.py b/daklib/contents.py index 81ce2226..e9517d63 100755 --- a/daklib/contents.py +++ b/daklib/contents.py @@ -253,6 +253,7 @@ def binary_helper(suite_id, arch_id, overridetype_id, component_id): overridetype.overridetype, component.component_name] contents_writer = BinaryContentsWriter(suite, architecture, overridetype, component) contents_writer.write_file() + session.close() return log_message def source_helper(suite_id, component_id): @@ -266,6 +267,7 @@ def source_helper(suite_id, component_id): log_message = [suite.suite_name, 'source', component.component_name] contents_writer = SourceContentsWriter(suite, component) contents_writer.write_file() + session.close() return log_message class ContentsWriter(object): -- 2.39.5