[PATCH 1/5] If NFS is selected in the source spoke, the URL must contain a colon (#869103).
Chris Lumens
clumens at redhat.com
Tue Oct 23 15:02:20 UTC 2012
---
pyanaconda/ui/gui/spokes/source.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 6fa7e8e..65d6b28 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -490,9 +490,10 @@ class SourceSpoke(NormalSpoke):
elif self._nfs_active():
url = self._urlEntry.get_text().strip()
- # If the user didn't fill in the URL entry, just return as if
- # they selected nothing.
- if url == "":
+ # If the user didn't fill in the URL entry, or it does not contain
+ # a ':' (so, no host/directory split), just return as if they
+ # selected nothing.
+ if url == "" or not ':' in url:
return
self.data.method.method = "nfs"
@@ -641,7 +642,7 @@ class SourceSpoke(NormalSpoke):
selector.path = cdrom.path
selector.set_chosen(chosen)
self._autodetectMediaBox.pack_start(selector, False, False, 0)
-
+
gtk_action_1()
added = True
--
1.7.11.2
More information about the anaconda-patches
mailing list