[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 4/4] Fix needsNetwork() method for yum repo objects (#470613)
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH 4/4] Fix needsNetwork() method for yum repo objects (#470613)
- Date: Fri, 20 Feb 2009 18:52:45 -1000
We need to check self.metalink in the needsNetwork() method since
that's what our yum repo configuration files used during
installation are using now. Otherwise, needsNetwork() returns
False and we cycle through many iterations of trying to fetch the
repo data without ever bringing up the network.
---
yuminstall.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/yuminstall.py b/yuminstall.py
index f8aae0d..d965396 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -244,6 +244,8 @@ class AnacondaYumRepo(YumRepository):
return len(filter(lambda s: _isURL(s), self.baseurl)) > 0
elif self.mirrorlist:
return _isURL(self.mirrorlist)
+ elif self.metalink:
+ return _isURL(self.metalink)
else:
return False
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]