From 9b8301c8ce87e77ac299fb1846f07154a0b7c049 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Mar 10 2016 16:24:18 +0000 Subject: [init] Iterate over arches just once We can create the repos in one loop together with writing the comps files. Signed-off-by: Lubomír Sedlář --- diff --git a/pungi/phases/init.py b/pungi/phases/init.py index 0fe4074..f7381bf 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