[PATCH rhel5.4] Fix handling of parted exceptions in text mode (#506725)

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

 



The patch should fix text mode commits for BZs #455465 and #498935.

---
 text.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/text.py b/text.py
index 5a0aacd..29e8cea 100644
--- a/text.py
+++ b/text.py
@@ -551,7 +551,7 @@ class InstallInterface:
         exnWin = ExceptionWindow(shortText, longTextFile, self.screen)
         return exnWin
 
-    def partedExceptionWindow(self, exc):
+    def partedExceptionWindow(self, exc, anaconda):
         # if our only option is to cancel, let us handle the exception
         # in our code and avoid popping up the exception window here.
         if exc.options == parted.EXCEPTION_CANCEL:
@@ -671,7 +671,7 @@ class InstallInterface:
         anaconda.id.fsset.registerProgressWindow(self.progressWindow)
         anaconda.id.fsset.registerWaitWindow(self.waitWindow)        
 
-        parted.exception_set_handler(self.partedExceptionWindow)
+        parted.exception_set_handler(lambda exn: self.partedExceptionWindow(exn, anaconda))
         
 	lastrc = INSTALL_OK
 	(step, instance) = anaconda.dispatch.currentStep()
-- 
1.6.0.6

_______________________________________________
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