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 > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 02-10-2010, 06:24 PM
David Lehman
 
Default Only show the error message if there was an error.

---
packages.py | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/packages.py b/packages.py
index 4ae9f4d..ffe1cb6 100644
--- a/packages.py
+++ b/packages.py
@@ -124,14 +124,15 @@ def turnOnFilesystems(anaconda):
except Exception as e:
raise

- rc = anaconda.intf.detailedMessageWindow(title, message, details,
+ if title:
+ rc = anaconda.intf.detailedMessageWindow(title, message, details,
type = "custom",
custom_buttons = [_("_File Bug"), _("_Exit installer")])

- if rc == 0:
- raise
- elif rc == 1:
- sys.exit(1)
+ if rc == 0:
+ raise
+ elif rc == 1:
+ sys.exit(1)

if not anaconda.upgrade:
anaconda.storage.turnOnSwap()
--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-10-2010, 06:29 PM
Hans de Goede
 
Default Only show the error message if there was an error.

Ack.

On 02/10/2010 08:24 PM, David Lehman wrote:

---
packages.py | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/packages.py b/packages.py
index 4ae9f4d..ffe1cb6 100644
--- a/packages.py
+++ b/packages.py
@@ -124,14 +124,15 @@ def turnOnFilesystems(anaconda):
except Exception as e:
raise

- rc = anaconda.intf.detailedMessageWindow(title, message, details,
+ if title:
+ rc = anaconda.intf.detailedMessageWindow(title, message, details,
type = "custom",
custom_buttons = [_("_File Bug"), _("_Exit installer")])

- if rc == 0:
- raise
- elif rc == 1:
- sys.exit(1)
+ if rc == 0:
+ raise
+ elif rc == 1:
+ sys.exit(1)

if not anaconda.upgrade:
anaconda.storage.turnOnSwap()


_______________________________________________
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 08:55 AM.

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