]> git.pld-linux.org Git - packages/bzr-gtk.git/blobdiff - bzr-gtk-dbus_detection_fix.patch
- Release 2. Fix for detecting dbus availability.
[packages/bzr-gtk.git] / bzr-gtk-dbus_detection_fix.patch
diff --git a/bzr-gtk-dbus_detection_fix.patch b/bzr-gtk-dbus_detection_fix.patch
new file mode 100644 (file)
index 0000000..8944bc5
--- /dev/null
@@ -0,0 +1,17 @@
+=== modified file 'seahorse.py'
+--- old/seahorse.py    2008-07-23 00:07:09 +0000
++++ new/seahorse.py    2008-08-05 13:55:03 +0000
+@@ -40,6 +40,12 @@
+         name = get_name()
+     else:
+         name = getattr(e, '_dbus_error_name', None)
++        
++    if name is None:
++        args = getattr(e, 'args', None) # This is case for old python-dbus-0.62
++        if args == ("Unable to determine the address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for help)",):
++            raise ImportError
++        
+     # DBus sometimes fails like this, just treat it as if seahorse is not
+     # available rather than crashing.
+     if name in ("org.freedesktop.DBus.Error.Spawn.ExecFailed", 
+
This page took 0.030781 seconds and 4 git commands to generate.