[rhel7-branch 2/29] Select http source if there is no mirror enabled.

bcl installerbot-noreply at redhat.com
Wed Jun 3 00:36:34 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

Related: rhbz#876135
(cherry picked from commit 27f8127b53a4a50e83268bd76281f4ac8bec71ca)

Related: rhbz#1196721
---
 pyanaconda/ui/gui/spokes/source.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 67e968c..a45d1c3 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -766,10 +766,13 @@ def refresh(self):
             combo = self.builder.get_object("isoPartitionCombo")
             combo.set_active(active)
 
-        # We default to the mirror list, and then if the method tells us
-        # something different later, we can change it.
-        self._protocolComboBox.set_active_id(PROTOCOL_MIRROR)
-        self._urlEntry.set_sensitive(False)
+        # We default to the mirror list if available. http otherwise
+        if self.payload.mirrorEnabled:
+            self._protocolComboBox.set_active(PROTOCOL_MIRROR)
+            self._urlEntry.set_sensitive(False)
+        else:
+            self._protocolComboBox.set_active(PROTOCOL_HTTP)
+            self._urlEntry.set_sensitive(True)
         self._updateURLEntryCheck()
 
         # Set up the default state of UI elements.


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/08eed559b26bd8f35ba606f4fcba2055a5ef1898


More information about the anaconda-patches mailing list