From: Tim Deegan Date: Mon, 15 Jan 2007 16:04:32 +0000 (+0000) Subject: [PYGRUB] Make the boot-choice timeout actually time out. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15396^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d50a0b66da607f0076fc4231bd13d121f7de701f;p=xen.git [PYGRUB] Make the boot-choice timeout actually time out. Signed-off-by: Tim Deegan --- diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index 13b05d9a67..a0de67df67 100644 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -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'):