diff options
author | Mike Fulbright <msf@redhat.com> | 2003-09-25 22:05:13 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-09-25 22:05:13 +0000 |
commit | 9c8ce90053dcfba57762413da4a310bcc5751de5 (patch) | |
tree | 50a62c1455a430b1d2cad0ed4a66e1e5d8315312 /anaconda | |
parent | 9b3db348b48db45f5a636dc50ccac1329950dadd (diff) | |
download | anaconda-9c8ce90053dcfba57762413da4a310bcc5751de5.tar.gz anaconda-9c8ce90053dcfba57762413da4a310bcc5751de5.tar.xz anaconda-9c8ce90053dcfba57762413da4a310bcc5751de5.zip |
retry mouse probe as per bug #105534
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 28 |
1 files changed, 21 insertions, 7 deletions
@@ -840,13 +840,27 @@ if not isHeadless: # ask for the mouse type import rhpl.mouse as mouse - if mouse.mouseWindow(mousehw) == 0: - dup_log(_("No mouse was detected. A mouse is required for " - "graphical installation. Starting text mode.")) - display_mode = 't' - time.sleep(2) - else: - dup_log(_("Using mouse type: %s"), mousehw.shortDescription()) + while 1: + mouserc = mouse.mouseWindow(mousehw) + if mouserc == 0: + dup_log(_("No mouse was detected. A mouse is required for " + "graphical installation. Starting text mode.")) + display_mode = 't' + time.sleep(2) + break + elif mouserc == -1: + # rescan + mousehw.probe() + mousedev = mousehw.get() + if mousedev[0] != "No - mouse": + dup_log(_("Detected mouse type: %s"), mousehw.shortDescription()) + time.sleep(5) + break + else: + dup_log(_("Using mouse type: %s"), mousehw.shortDescription()) + break + + else: # s390/iSeries checks if display_mode == 'g' and not (os.environ.has_key('DISPLAY') or flags.usevnc): |