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 > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 05-19-2008, 03:58 PM
Chris Lumens
 
Default 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
 
Old 07-22-2008, 05:23 PM
Chris Lumens
 
Default 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
 

Thread Tools




All times are GMT. The time now is 07:36 PM.

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