]> git.pld-linux.org Git - packages/bzr-gtk.git/blob - bzr-gtk-dbus_detection_fix.patch
8944bc539b6d5aaa7d88bdfbe36524099b626330
[packages/bzr-gtk.git] / bzr-gtk-dbus_detection_fix.patch
1 === modified file 'seahorse.py'
2 --- old/seahorse.py     2008-07-23 00:07:09 +0000
3 +++ new/seahorse.py     2008-08-05 13:55:03 +0000
4 @@ -40,6 +40,12 @@
5          name = get_name()
6      else:
7          name = getattr(e, '_dbus_error_name', None)
8 +        
9 +    if name is None:
10 +        args = getattr(e, 'args', None) # This is case for old python-dbus-0.62
11 +        if args == ("Unable to determine the address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for help)",):
12 +            raise ImportError
13 +        
14      # DBus sometimes fails like this, just treat it as if seahorse is not
15      # available rather than crashing.
16      if name in ("org.freedesktop.DBus.Error.Spawn.ExecFailed", 
17
This page took 0.04215 seconds and 2 git commands to generate.