Comment 57 for bug 365881

Revision history for this message
Ray Folwell (ray-folwell) wrote :

I think that I have isolated where in the wubi code these dialogs pop up.
The first set are when GetDiskFreeSpaceExW is called at line 69 in backends/win32/drive.py. The second set are when glob.glob is called at line 650 in backends/common/backend.py

If it is a CD or USB card reader from which the media has been removed, you get the "Please insert disk message". If it is a card reader than has not had a card in since it was mounted, you get the Exception Error.

The solution might be to check filesystem in the __init__ method of Drive and set type = None if filesystem is blank.
I attach a patch that does that (patch at lines 43-50)