]> err.no Git - dak/commitdiff
daklib/archive.py: session → self.session
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 14:16:38 +0000 (16:16 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 14:16:38 +0000 (16:16 +0200)
daklib/archive.py

index 9bb0106967e2e803ae844cce06f937cd7f34e82f..54f925a33f07d22e629a5c6edf50d83f925ce23d 100644 (file)
@@ -1128,7 +1128,7 @@ class ArchiveUpload(object):
 
             # copy to build queues
             if policy_queue is None or policy_queue.send_to_build_queues:
-                source_suites = session.query(Suite).filter_by(suite_id=suite.suite_id).subquery()
+                source_suites = self.session.query(Suite).filter_by(suite_id=suite.suite_id).subquery()
                 for build_queue in suite.copy_queues:
                     self._install_to_suite(build_queue.suite, source_component_func, binary_component_func, source_suites=source_suites, extra_source_archives=[suite.archive])