Nice work, Thorsten. The fix worked for me for installing a proprietary
driver.

Removing a driver still gave me a similar problem with a UI traceback
below the tuple problem. Using your research I found another call of
readConfig later in the code and made the same change you made above.
Then I was able to go back and forth.

Here's the total change:

--- xorg_driver.py      2008-04-08 21:06:25.000000000 -0400
+++ xorg_driver.py.new  2008-04-10 16:36:07.000000000 -0400
@@ -57,7 +57,7 @@
 
         if os.path.exists(OSLib.inst.xorg_conf_path):
             try:
-                self.xorg_conf = 
xorgconfig.readConfig(OSLib.inst.xorg_conf_path)
+                self.xorg_conf = 
xorgconfig.readConfig(OSLib.inst.xorg_conf_path)[0]
             except (IOError, xorgconfig.ParseException, AttributeError):
                 self.xorg_conf = None
         else:
@@ -156,7 +156,7 @@
         elif os.path.exists(oldconf):
             open(OSLib.inst.xorg_conf_path, 'w').write(open(oldconf).read())
             os.unlink(oldconf)
-            self.xorg_conf = xorgconfig.readConfig(OSLib.inst.xorg_conf_path)
+            self.xorg_conf = 
xorgconfig.readConfig(OSLib.inst.xorg_conf_path)[0]
         else: # no backup, so mangle current config manually
             device = self.xorg_conf.getSections('device')[0]
             device.driver = self.alt_free_driver

-- 
jockey-gtk crashed with AttributeError: 'tuple' object has no attribute 
'getSections'
https://bugs.launchpad.net/bugs/215027
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to