diff options
author | bfox <bfox> | 2001-02-14 08:07:53 +0000 |
---|---|---|
committer | bfox <bfox> | 2001-02-14 08:07:53 +0000 |
commit | ab985671350930875109429233856e43d3398fbf (patch) | |
tree | 411f6005b005a40d36efaacd15e39c3ff3ce559e /xserver.py | |
parent | 185dda47a447aa5499b24ff3873983e31b5d333a (diff) | |
download | anaconda-ab985671350930875109429233856e43d3398fbf.tar.gz anaconda-ab985671350930875109429233856e43d3398fbf.tar.xz anaconda-ab985671350930875109429233856e43d3398fbf.zip |
resolves bug #27102
Diffstat (limited to 'xserver.py')
-rw-r--r-- | xserver.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/xserver.py b/xserver.py index 829ef30f8..c2243db53 100644 --- a/xserver.py +++ b/xserver.py @@ -146,14 +146,17 @@ def fb_check (): cards = kudzu.probe (kudzu.CLASS_VIDEO, kudzu.BUS_UNSPEC, kudzu.PROBE_ALL); - - for card in cards: - (junk, man, junk2) = card + + if cards != []: + for card in cards: + (junk, man, junk2) = card - if man[:13] == "Card:NeoMagic": - return 1 - else: + if man[:13] == "Card:NeoMagic": + return 1 + else: return 0 + else: + return 0 def testx(mouse, x): # print "going to test the x server" |