[firstboot/rhel6-branch][PATCH] React properly on closing the EULA review dialog (#876018)
Vratislav Podzimek
vpodzime at redhat.com
Fri Jul 5 08:32:07 UTC 2013
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
More information about the anaconda-patches
mailing list