[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ář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-03-10 15:13:04 +01:00
parent 1efd4a9873
commit 619e5323d6
1 changed files with 1 additions and 4 deletions

View File

@ -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