[PYGRUB] Make the boot-choice timeout actually time out.
authorTim Deegan <Tim.Deegan@xensource.com>
Mon, 15 Jan 2007 16:04:32 +0000 (16:04 +0000)
committerTim Deegan <Tim.Deegan@xensource.com>
Mon, 15 Jan 2007 16:04:32 +0000 (16:04 +0000)
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
tools/pygrub/src/pygrub

index 13b05d9a67314016181bcc8f225c444706711b4e..a0de67df6771e9cf5ac04291d898217e275d033a 100644 (file)
@@ -405,6 +405,9 @@ class Grub:
             c = self.screen.getch()
             if mytime != -1:
                 mytime += 1
+                if mytime >= int(timeout):
+                    self.isdone = True
+                    break
 
             # handle keypresses
             if c == ord('c'):