Re: [PATCH] Only show the error message if there was an error.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux