diff options
author | Mike Fulbright <msf@redhat.com> | 2003-01-29 04:58:11 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-01-29 04:58:11 +0000 |
commit | fb2e148ce4cb1db7c85acd5430dbdd883c598e43 (patch) | |
tree | 6e74f26ccdce4a34bb472e82b9dd99941ff6c4e6 /rescue.py | |
parent | 5c8528a8810b6f39b022b485604c05aa1e9e6c86 (diff) | |
download | anaconda-fb2e148ce4cb1db7c85acd5430dbdd883c598e43.tar.gz anaconda-fb2e148ce4cb1db7c85acd5430dbdd883c598e43.tar.xz anaconda-fb2e148ce4cb1db7c85acd5430dbdd883c598e43.zip |
make back button work
Diffstat (limited to 'rescue.py')
-rw-r--r-- | rescue.py | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -135,16 +135,22 @@ def runRescue(instPath, mountroot, id): screen = SnackScreen() - rc = ButtonChoiceWindow(screen, _("Setup Networking"), - _("Do you want to start the network interfaces on this system?"), - [_("Yes"), _("No")]) - - if rc != string.lower(_("No")): - intf = RescueInterface(screen) - - window = network_text.NetworkWindow() - rc = apply(window, (screen, id.network, intf, 1)) - startNetworking(id.network) + while 1: + rc = ButtonChoiceWindow(screen, _("Setup Networking"), + _("Do you want to start the network interfaces on " + "this system?"), [_("Yes"), _("No")]) + + if rc != string.lower(_("No")): + intf = RescueInterface(screen) + + window = network_text.NetworkWindow() + rc = apply(window, (screen, id.network, intf, 1)) + if rc == INSTALL_OK: + startNetworking(id.network) + break + else: + break + screen.finish() |