[PATCH 10/14] Don't traceback with malformated repo= nfs: parameter.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 iw/task_gui.py |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/iw/task_gui.py b/iw/task_gui.py
index 061edb7..b9b2029 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -217,10 +217,13 @@ class RepoEditor:
                 else:
                     self.proxyCheckbox.set_active(False)
                     self.proxyTable.set_sensitive(False)
-            elif self.anaconda.methodstr.startswith("nfs"):
-                (method, server, dir) = self.anaconda.methodstr.split(":")
-                self.nfsServerEntry.set_text(server)
-                self.nfsPathEntry.set_text(dir)
+            elif self.anaconda.methodstr.startswith("nfs:"):
+                method_server_dir = self.anaconda.methodstr.split(":")
+                try:
+                    self.nfsServerEntry.set_text(method_server_dir[1])
+                    self.nfsPathEntry.set_text(method_server_dir[2])
+                except IndexError:
+                    pass
                 self.nfsOptionsEntry.set_text("")
             elif self.anaconda.methodstr.startswith("cdrom:"):
                 pass
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux