From 2faf67b7edc2929f5a2e1eb9f74f2284f5606361 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Fri, 19 Jan 2001 23:01:10 +0000 Subject: fix for bug 17285 --- todo.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'todo.py') diff --git a/todo.py b/todo.py index 140bbaca0..5e54a9451 100644 --- a/todo.py +++ b/todo.py @@ -472,15 +472,16 @@ class ToDo: pass elif iutil.getArch() == "i386" or iutil.getArch() == "ia64": # Look for the first IDE floppy device - drives = isys.floppyDriveDict().keys() + drives = isys.floppyDriveDict() if not drives: log("no IDE floppy devices found") return 0 - # We don't need to be picky about sort order as we toss - # items that aren't hd* anyway - drives.sort() - floppyDrive = drives[0] + flopyyDrive = drives.keys()[0] + # need to go through and find if there is an LS-120 + for dev in drives.keys(): + if re.compile(".*[Ll][Ss]-120.*").search(drives[dev]): + floppyDrive = dev # No IDE floppy's -- we're fine w/ /dev/fd0 if not floppyDrive: return -- cgit