FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 11-04-2008, 10:21 PM
David Cantrell
 
Default Prevent traceback when there are no network devices (#469339)

If a user boots from boot.iso, the installer will bring up the net
config dialog to configure the network interface so packages can
be found and installed. If a user has no available network devices,
the window appears but nothing is in the combo box. If they click
the combo box, you get a traceback.

This patch returns False from all enableNetwork() functions so the
user sees the 'No Network Available' dialog and is given the Exit
Installer button.
---
gui.py | 2 ++
rescue.py | 2 ++
text.py | 2 ++
3 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gui.py b/gui.py
index eb356f4..2fcc9e9 100755
--- a/gui.py
+++ b/gui.py
@@ -1162,6 +1162,8 @@ class InstallInterface:
pass

def enableNetwork(self, anaconda):
+ if len(anaconda.id.network.netdevices) == 0:
+ return False
from netconfig_dialog import NetworkConfigurator
net = NetworkConfigurator(anaconda.id.network)
ret = net.run()
diff --git a/rescue.py b/rescue.py
index a9624ec..67d573b 100644
--- a/rescue.py
+++ b/rescue.py
@@ -82,6 +82,8 @@ class RescueInterface:
return OkCancelWindow(self.screen, title, text)

def enableNetwork(self, anaconda):
+ if len(anaconda.id.network.netdevices) == 0:
+ return False
from netconfig_text import NetworkConfiguratorText
w = NetworkConfiguratorText(self.screen, anaconda)
ret = w.run()
diff --git a/text.py b/text.py
index 7b57962..d3dd568 100644
--- a/text.py
+++ b/text.py
@@ -496,6 +496,8 @@ class InstallInterface:
return (passphrase, isglobal)

def enableNetwork(self, anaconda):
+ if len(anaconda.id.network.netdevices) == 0:
+ return False
from netconfig_text import NetworkConfiguratorText
w = NetworkConfiguratorText(self.screen, anaconda)
ret = w.run()
--
1.6.0.2

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

Thread Tools




All times are GMT. The time now is 06:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org