Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   If there's no network, attempt to bring it up before filing a bug. (http://www.linux-archive.org/archlinux-pacman-development/91080-if-theres-no-network-attempt-bring-up-before-filing-bug.html)

Chris Lumens 05-19-2008 03:58 PM

If there's no network, attempt to bring it up before filing a bug.
 
---
exception.py | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/exception.py b/exception.py
index 75aff94..8417ee7 100644
--- a/exception.py
+++ b/exception.py
@@ -432,6 +432,24 @@ def runSaveDialog(anaconda, exn):
"disk."))
continue
else:
+ import network
+ if not network.hasActiveNetDev():
+ if os.environ.has_key("DISPLAY"):
+ from netconfig_dialog import NetworkConfigurator
+ import gtk
+
+ net = NetworkConfigurator(anaconda.id.network)
+ ret = net.run()
+ net.destroy()
+
+ if ret != gtk.RESPONSE_CANCEL:
+ continue
+ else:
+ anaconda.intf.messageWindow(_("No Network Available"),
+ _("Cannot save a bug report since there is no "
+ "active networking device available."))
+ continue
+
if not saveToBugzilla(anaconda, exn, saveWin.getDest()):
continue
elif rc == EXN_CANCEL:
--
1.5.4.5

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

Chris Lumens 07-22-2008 05:23 PM

If there's no network, attempt to bring it up before filing a bug.
 
---
exception.py | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/exception.py b/exception.py
index 4572eef..6fac441 100644
--- a/exception.py
+++ b/exception.py
@@ -417,6 +417,24 @@ def runSaveDialog(anaconda, exn):
"disk."))
continue
else:
+ import network
+ if not network.hasActiveNetDev():
+ if os.environ.has_key("DISPLAY"):
+ from netconfig_dialog import NetworkConfigurator
+ import gtk
+
+ net = NetworkConfigurator(anaconda.id.network)
+ ret = net.run()
+ net.destroy()
+
+ if ret != gtk.RESPONSE_CANCEL:
+ continue
+ else:
+ anaconda.intf.messageWindow(_("No Network Available"),
+ _("Cannot save a bug report since there is no "
+ "active networking device available."))
+ continue
+
if not saveToBugzilla(anaconda, exn, saveWin.getDest()):
continue
elif rc == EXN_CANCEL:
--
1.5.5.1

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


All times are GMT. The time now is 02:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.