From: Ansgar Burchardt Date: Sun, 8 Jul 2012 00:11:56 +0000 (-0600) Subject: daklib/contents.py: close db session after use X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=5401a178a83c927e507b746979aab7ee17ffae84;p=dak.git daklib/contents.py: close db session after use --- 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):