diff options
author | Chris Lumens <clumens@redhat.com> | 2012-08-24 12:50:06 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2012-08-24 14:06:51 -0400 |
commit | fc0ed882a0507794685d4eaad28ddbe78dad9e6c (patch) | |
tree | bb54565cd3446d63c017d4803a1dbcd502500ccf /pyanaconda | |
parent | cd12605dd5b463418cdcad9751228c632a3f6a46 (diff) | |
download | anaconda-fc0ed882a0507794685d4eaad28ddbe78dad9e6c.tar.gz anaconda-fc0ed882a0507794685d4eaad28ddbe78dad9e6c.tar.xz anaconda-fc0ed882a0507794685d4eaad28ddbe78dad9e6c.zip |
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.
Diffstat (limited to 'pyanaconda')
-rw-r--r-- | pyanaconda/ui/gui/spokes/source.py | 6 |
1 files changed, 6 insertions, 0 deletions
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() |