]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/archive.py: use target suite as source_suite when installing to build queues
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 14:09:17 +0000 (16:09 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 14:09:17 +0000 (16:09 +0200)
daklib/archive.py

index 6b4d0dce853b92188b483fe4b18115641f9a61db..9bb0106967e2e803ae844cce06f937cd7f34e82f 100644 (file)
@@ -1128,8 +1128,9 @@ 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()
                 for build_queue in suite.copy_queues:
-                    self._install_to_suite(build_queue.suite, source_component_func, binary_component_func, extra_source_archives=[suite.archive])
+                    self._install_to_suite(build_queue.suite, source_component_func, binary_component_func, source_suites=source_suites, extra_source_archives=[suite.archive])
 
         self._do_bts_versiontracking()