[PATCH 6/8] Disable, but don't remove, yum default repos if a base repo was given.

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

 



---
 pyanaconda/packaging/yumpayload.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index faf7959..e88766e 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -170,9 +170,11 @@ reposdir=/etc/yum.repos.d,/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/t
             elif not isFinal and not repo.enabled:
                 log.info("excluding disabled repo %s for prerelease" % repo.id)
                 self.removeRepo(repo.id)
-            elif self.data.method.method and repo.id not in self.repos:
-                log.info("excluding repo %s" % repo.id)
-                self._yum.disableRepo(repo.id)
+            elif self.data.method.method and \
+                 repo.id != BASE_REPO_NAME and \
+                 repo.id not in [r.name for r in self.data.repo.dataList()]:
+                log.info("disabling repo %s" % repo.id)
+                self.disableRepo(repo.id)
 
     def _configureMethod(self, storage):
         """ Configure the base repo. """
-- 
1.7.9.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