diff options
-rw-r--r-- | xf86config.py | 13 |
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 () |