From fc0ed882a0507794685d4eaad28ddbe78dad9e6c Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 24 Aug 2012 12:50:06 -0400 Subject: Add old_source checking for closest mirror and url methods too (#851336). 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(+) (limited to 'pyanaconda') diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py index b9f544ca2..c912be3dd 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() -- cgit