[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] If there's no network, attempt to bring it up before filing a bug.
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] If there's no network, attempt to bring it up before filing a bug.
- Date: Tue, 22 Jul 2008 13:23:12 -0400
---
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]