From 4b374278e4018d2efa7e2f65a194692a64edd174 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 8 Dec 2015 09:04:32 -0600 Subject: [PATCH] we need to ensure that we send all the tasks to koji on the correct arch Signed-off-by: Dennis Gilmore --- pungi/phases/buildinstall.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pungi/phases/buildinstall.py b/pungi/phases/buildinstall.py index f97f4167..722d1aec 100644 --- a/pungi/phases/buildinstall.py +++ b/pungi/phases/buildinstall.py @@ -86,9 +86,9 @@ class BuildinstallPhase(PhaseBase): noupgrade = not self.compose.conf.get("buildinstall_upgrade_image", False) buildinstall_method = self.compose.conf["buildinstall_method"] - commands = [] - for arch in self.compose.get_arches(): + commands = [] + repo_baseurl = self.compose.paths.work.arch_repo(arch) output_dir = self.compose.paths.work.buildinstall_dir(arch) volid = get_volid(self.compose, arch) @@ -121,9 +121,9 @@ class BuildinstallPhase(PhaseBase): else: raise ValueError("Unsupported buildinstall method: %s" % buildinstall_method) - for cmd in commands: - self.pool.add(BuildinstallThread(self.pool)) - self.pool.queue_put((self.compose, arch, cmd)) + for cmd in commands: + self.pool.add(BuildinstallThread(self.pool)) + self.pool.queue_put((self.compose, arch, cmd)) self.pool.start()