]> err.no Git - dak/commitdiff
daklib/contents.py: close db session after use
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 8 Jul 2012 00:11:56 +0000 (18:11 -0600)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 13 Jul 2012 16:43:17 +0000 (10:43 -0600)
daklib/contents.py

index 81ce2226774c4766096d0e8ef1ff51f69816be30..e9517d637ec9588d89af9a362ecd14626f9a0d53 100755 (executable)
@@ -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):