summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2003-01-14 01:18:05 +0000
committerMatt Wilson <msw@redhat.com>2003-01-14 01:18:05 +0000
commit2574b2f44887eca9337e8ca05c4376e17a2b61fe (patch)
tree2dc625b7eba88d6a0df20a483e8b522d22e7a4b5 /text.py
parent8534a8e48ed2e39f75248e9faa8c93b669c913e4 (diff)
downloadanaconda-2574b2f44887eca9337e8ca05c4376e17a2b61fe.tar.gz
anaconda-2574b2f44887eca9337e8ca05c4376e17a2b61fe.tar.xz
anaconda-2574b2f44887eca9337e8ca05c4376e17a2b61fe.zip
use kudzu for floppy probe
Diffstat (limited to 'text.py')
-rw-r--r--text.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/text.py b/text.py
index bc2012247..f73b7948f 100644
--- a/text.py
+++ b/text.py
@@ -289,7 +289,12 @@ class InstallInterface:
return 0
def exceptionWindow(self, title, text):
- floppyDevices = len(isys.floppyDriveDict())
+ try:
+ floppyDevices = len(kudzu.probe(kudzu.CLASS_FLOPPY,
+ kudzu.BUS_UNSPEC,
+ kudzu.PROBE_ALL))
+ except:
+ floppyDevices = 0
if floppyDevices > 0 or DEBUG:
ugh = "%s\n\n" % (exceptionText,)
buttons=[TEXT_OK_BUTTON, _("Save"), _("Debug")]