[firstboot/rhel6-branch][PATCH] React properly on closing the EULA review dialog (#876018)
Samantha N. Bueno
sbueno+anaconda at redhat.com
Mon Jul 8 12:35:50 UTC 2013
Ack.
On Fri, Jul 05, 2013 at 10:32:07AM +0200, Vratislav Podzimek wrote:
>
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
> modules/eula.py | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/modules/eula.py b/modules/eula.py
> index 2f72725..25f77dc 100644
> --- a/modules/eula.py
> +++ b/modules/eula.py
> @@ -60,11 +60,13 @@ class moduleClass(Module):
> rc = dlg.run()
> dlg.destroy()
>
> - if rc == 0:
> - return RESULT_FAILURE
> - elif rc == 1:
> + if rc == 1:
> + # Shut down chosen
> os.system("/sbin/halt")
> return RESULT_FAILURE
> + else:
> + # Reread license chosen, the close (X) button clicked etc.
> + return RESULT_FAILURE
>
> def createScreen(self):
> self.vbox = gtk.VBox(spacing=10)
> --
> 1.7.11.7
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
More information about the anaconda-patches
mailing list