diff options
author | Radek Vykydal <rvykydal@redhat.com> | 2009-10-13 15:04:32 +0200 |
---|---|---|
committer | Radek Vykydal <rvykydal@redhat.com> | 2009-10-13 15:04:32 +0200 |
commit | d7f71bd9a0cd55c779d4009b47b63db08b346212 (patch) | |
tree | 552efdcc3dd99ced590c576cbba09f8dddb5149f | |
parent | be3f54146a7c0de5932516bfacde5ed233757dfd (diff) | |
download | anaconda-d7f71bd9a0cd55c779d4009b47b63db08b346212.tar.gz anaconda-d7f71bd9a0cd55c779d4009b47b63db08b346212.tar.xz anaconda-d7f71bd9a0cd55c779d4009b47b63db08b346212.zip |
Don't traceback with malformed repo= nfs: parameter.
-rw-r--r-- | 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 b0fbfb1b4..799905f0e 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 |