[PATCH] Add old_source checking for closest mirror and url methods too (#851336).
Chris Lumens
clumens at redhat.com
Fri Aug 24 17:16:06 UTC 2012
This way if the user starts with one of those methods and doesn't change
anything before hitting back, we won't waste time trying to redownload
everything.
---
pyanaconda/ui/gui/spokes/source.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index b9f544c..c912be3 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -457,6 +457,8 @@ class SourceSpoke(NormalSpoke):
elif self._mirror_active():
# this preserves the url for later editing
self.data.method.method = None
+ if not old_source.method:
+ return
elif self._http_active() or self._ftp_active():
url = self._urlEntry.get_text().strip()
@@ -478,6 +480,10 @@ class SourceSpoke(NormalSpoke):
self.data.method.url = "http://" + self.data.method.url
elif self._protocolComboBox.get_active() == 1 and not self.data.method.url.startswith("https://"):
self.data.method.url = "https://" + self.data.method.url
+
+ if (old_source.method == "url" and
+ old_source.url == self.data.method.url):
+ return
elif self._nfs_active():
url = self._urlEntry.get_text().strip()
--
1.7.11.2
More information about the anaconda-patches
mailing list