[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH rhel5.4] Fix handling of parted exceptions in text mode (#506725)
- From: Radek Vykydal <rvykydal redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH rhel5.4] Fix handling of parted exceptions in text mode (#506725)
- Date: Thu, 18 Jun 2009 18:15:33 +0200
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]