[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] If repo=/method= is given, disable all other repos by default.
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] If repo=/method= is given, disable all other repos by default.
- Date: Tue, 17 Jun 2008 11:45:57 -0400
---
installclasses/fedora.py | 2 +-
yuminstall.py | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/installclasses/fedora.py b/installclasses/fedora.py
index 8bb3be7..828678a 100644
--- a/installclasses/fedora.py
+++ b/installclasses/fedora.py
@@ -52,7 +52,7 @@ class InstallClass(BaseInstallClass):
if not type(uri) == types.ListType:
uri = [uri,]
- return {'Fedora': uri}
+ return {'Installation Repo': uri}
def setInstallData(self, anaconda):
BaseInstallClass.setInstallData(self, anaconda)
diff --git a/yuminstall.py b/yuminstall.py
index ee4b93e..24e1280 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -607,6 +607,11 @@ class AnacondaYum(YumSorter):
repo.yumvar.update(self.conf.yumvar)
repo.cfg = parser
+ # If repo=/method= was passed in, we want to default these extra
+ # repos to off.
+ if self._baseRepoURL:
+ repo.enabled = False
+
return repo
# We need to make sure $releasever gets set up before .repo files are
--
1.5.5.1
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]