[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH f15-alpha, etc.] 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.
---
 pyanaconda/yuminstall.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

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)
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]