mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
pygrub: Revert 19322:3118041f2259, as it breaks timeout=0 behaviour
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
361c982639
commit
be7c3e95bc
1 file changed
+1
-5
@@ -443,11 +443,7 @@ class Grub:
|
||||
# Timed out waiting for a keypress
|
||||
if mytime != -1:
|
||||
mytime += 1
|
||||
# curses.timeout() does not work properly on Solaris
|
||||
# So we may come here even after a key has been pressed.
|
||||
# Check both timeout and mytime to avoid exiting
|
||||
# when we shouldn't.
|
||||
if timeout != -1 and mytime >= int(timeout):
|
||||
if mytime >= int(timeout):
|
||||
self.isdone = True
|
||||
break
|
||||
else:
|
||||
|
||||