From 619e5323d6b9681bf0f1f95ae435054a613fa4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Thu, 10 Mar 2016 15:13:04 +0100 Subject: [PATCH] [init] Iterate over arches just once MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can create the repos in one loop together with writing the comps files. Signed-off-by: Lubomír Sedlář --- pungi/phases/init.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pungi/phases/init.py b/pungi/phases/init.py index 0fe40745..f7381bf1 100644 --- a/pungi/phases/init.py +++ b/pungi/phases/init.py @@ -160,13 +160,10 @@ class InitPhase(PhaseBase): def run(self): if self.compose.has_comps: - # write global comps and arch comps + # write global comps and arch comps, create comps repos write_global_comps(self.compose) for arch in self.compose.get_arches(): write_arch_comps(self.compose, arch) - - # create comps repos - for arch in self.compose.get_arches(): create_comps_repo(self.compose, arch) # write variant comps