From d31dfc6ddffc9a9b4c7f8bdaf854a53696781d60 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Feb 16 2011 19:05:15 +0000 Subject: Only check for the addons of enabled repos (#677773). This ensures that we will not try to fetch .treeinfo for one of the disabled updates repos on a DVD install, therefore requiring the network. --- diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py index d15c6d5..6aa2ca7 100644 --- a/pyanaconda/yuminstall.py +++ b/pyanaconda/yuminstall.py @@ -867,15 +867,14 @@ class AnacondaYum(yum.YumBase): extraRepos.append(repo) initialRepos = self.repos.repos.values() + extraRepos - for repo in initialRepos: + for repo in filter(lambda r: r.isEnabled(), initialRepos): addons = self._getAddons(repo.mirrorlist or repo.baseurl[0], repo.proxy_url) for addon in addons: addonRepo = AnacondaYumRepo(addon[0]) addonRepo.name = addon[1] addonRepo.baseurl = [ addon[2] ] - if repo.isEnabled(): - addonRepo.enable() + addonRepo.enable() if self.anaconda.proxy: self.setProxy(self.anaconda, addonRepo)