[PATCH] Catch no protocol case, default to http (#959605)
Brian C. Lane
bcl at redhat.com
Fri Jun 21 23:45:09 UTC 2013
From: "Brian C. Lane" <bcl at redhat.com>
The bug appears to have been fixed in some other way, but we should
still catch the unknown protocol case and default to http.
---
pyanaconda/ui/gui/spokes/source.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 17a01da..16e97e6 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -649,6 +649,9 @@ class SourceSpoke(NormalSpoke):
elif proto.startswith("ftp:"):
self._protocolComboBox.set_active(PROTOCOL_FTP)
l = 6
+ else:
+ self._protocolComboBox.set_active(PROTOCOL_HTTP)
+ l = 0
self._urlEntry.set_sensitive(True)
self._urlEntry.set_text(proto[l:])
--
1.8.1.4
More information about the anaconda-patches
mailing list