client/rhel/rhn-client-tools/src/up2date_client/tui.py | 20 +----------------
1 file changed, 2 insertions(+), 18 deletions(-)
New commits:
commit 56477190483ceb5ba483089aa8df0d9ac4d484df
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Mon Mar 29 12:17:28 2010 +0200
Cleanup all remaining skipping in Tui class.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/tui.py
b/client/rhel/rhn-client-tools/src/up2date_client/tui.py
index be1a375..8d6ba4b 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/tui.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/tui.py
@@ -1292,27 +1292,11 @@ class Tui:
result = win.run()
if result == "back":
-
- # hardware window
- if win.name == 'HardwareWindow': # and
self.alreadyRegistered:
-
- # If we saw the sub window, go back 1
- if self.saw_sub_window == 1:
- index = index - 1
- # Else, we must not have seen either go back 3
- else:
- index = index - 4
-
- elif win.name == 'OSReleaseWindow':
- if self.saw_sub_window == 1:
- index = index - 1
- # Else, we must not have seen either go back 3
- else:
- index = index - 3
- else:
+ if index > 0:
index = index - 1
direction = "backward"
+
elif result == "cancel":
log.log_debug("Caught a cancel request")
Show replies by date