summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-10 15:21:41 +0000
committerMatt Wilson <msw@redhat.com>1999-09-10 15:21:41 +0000
commite0e974477f07b1eb16c7553528b3f64d5d520ce5 (patch)
treec2b3602fffc989115ae127af7ff1aeb5f1453b48
parent6c4a8028dadd5db7af924415963231aac853adb1 (diff)
downloadanaconda-e0e974477f07b1eb16c7553528b3f64d5d520ce5.tar.gz
anaconda-e0e974477f07b1eb16c7553528b3f64d5d520ce5.tar.xz
anaconda-e0e974477f07b1eb16c7553528b3f64d5d520ce5.zip
fix for multiple referenced SEE linesbefore.jj.patch2
-rw-r--r--xf86config.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/xf86config.py b/xf86config.py
index 5f42e11f5..09da12809 100644
--- a/xf86config.py
+++ b/xf86config.py
@@ -88,10 +88,10 @@ class XF86Config:
if thecard:
card = cards[thecard]
- if card.has_key ("SEE"):
- return cards[card["SEE"]]
-
- return cards[thecard]
+ # XXX set a max depth here to avoid infinite loops
+ while card.has_key ("SEE"):
+ card = cards[card["SEE"]]
+ return card
return cards
def monitors (self, lines = None):
@@ -761,8 +761,9 @@ Section "Screen"
if __name__ == "__main__":
sys.path.append ("kudzu")
x = XF86Config ()
-
- x.probe ()
+ print x.cards ("ATI Mach64 3D RAGE II")
+# x.probe ()
+ sys.exit (0)
print x.preludeSection ()
print x.inputSection ()
print x.mouseSection ()