[master/f20 2/4] Fall back to closest mirror in source (#1016801)
Brian C. Lane
bcl at redhat.com
Wed Oct 16 20:30:48 UTC 2013
From: "Brian C. Lane" <bcl at redhat.com>
method.method is special. None means closest mirror, and if we set it to
"url" it causes the metadata to always be re-fetched when exiting the
spoke.
This depends on a pykickstart fix for method getattr which isn't
returning url by default.
---
pyanaconda/ui/gui/spokes/source.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index d9216ab..9a35d1c 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -713,13 +713,13 @@ class SourceSpoke(NormalSpoke):
else:
# No method was given in advance, so now we need to make a sensible
# guess. Go with autodetected media if that was provided, and then
- # fall back to a URL.
+ # fall back to closest mirror.
if not self._autodetectButton.get_no_show_all():
self._autodetectButton.set_active(True)
self.data.method.method = "cdrom"
else:
self._networkButton.set_active(True)
- self.data.method.method = "url"
+ self.data.method.method = None
self._noUpdatesCheckbox.set_active(not self.payload.isRepoEnabled("updates"))
--
1.8.3.1
More information about the anaconda-patches
mailing list