[PATCH f15-alpha, etc.] Only check for the addons of enabled repos (#677773).

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux