diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-11 04:10:36 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-11 04:10:36 +0000 |
commit | 0804153314c4712c7d3e16ad71b39c5307e03be3 (patch) | |
tree | 50686dac704ced04a469e8ede27807f7a233bf6b /isys | |
parent | 68a4924ffe52275f8de4ae9e8a32975b295671d3 (diff) | |
download | anaconda-0804153314c4712c7d3e16ad71b39c5307e03be3.tar.gz anaconda-0804153314c4712c7d3e16ad71b39c5307e03be3.tar.xz anaconda-0804153314c4712c7d3e16ad71b39c5307e03be3.zip |
only probe ide drives for their type once (fixes #47018)
Diffstat (limited to 'isys')
-rw-r--r-- | isys/isys.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/isys/isys.py b/isys/isys.py index 761ea92d7..7c3193f75 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -171,13 +171,21 @@ def loadFont(font): def loadKeymap(keymap): return _isys.loadKeymap (keymap) +probedList = None + +def flushDriveDict(): + global probedList + probedList = None + def driveDict(klassArg): - p = _isys.ProbedList() - p.updateIde() - p.updateScsi() + global probedList + if not probedList: + probedList = _isys.ProbedList() + probedList.updateIde() + probedList.updateScsi() dict = {} - for (klass, dev, descr) in p: + for (klass, dev, descr) in probedList: if (klass == klassArg): dict[dev] = descr return dict |