[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH rhel5.4] Fix handling of parted exceptions in text mode (#506725)
- From: Joel Granados <jgranado redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH rhel5.4] Fix handling of parted exceptions in text mode (#506725)
- Date: Thu, 18 Jun 2009 18:51:39 +0200
looks good.
On Thu, Jun 18, 2009 at 06:15:33PM +0200, Radek Vykydal wrote:
> 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 redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Joel Andres Granados
Brno, Czech Republic, Red Hat.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]