diff options
Diffstat (limited to 'app-pda/gnome-pilot/files/gnome-pilot-2.0.16-hal-0.5.11.patch')
-rw-r--r-- | app-pda/gnome-pilot/files/gnome-pilot-2.0.16-hal-0.5.11.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/app-pda/gnome-pilot/files/gnome-pilot-2.0.16-hal-0.5.11.patch b/app-pda/gnome-pilot/files/gnome-pilot-2.0.16-hal-0.5.11.patch deleted file mode 100644 index df0042899780..000000000000 --- a/app-pda/gnome-pilot/files/gnome-pilot-2.0.16-hal-0.5.11.patch +++ /dev/null @@ -1,38 +0,0 @@ ---- gpilotd/gpilotd.c-old 2008-07-13 21:52:04.000000000 +1000 -+++ gpilotd/gpilotd.c 2008-07-13 21:53:30.000000000 +1000 -@@ -1079,7 +1079,7 @@ - hal_device_added (LibHalContext *ctx, const char *udi) - { - gboolean visor_net = FALSE; -- char *bus, *match_str; -+ char *bus, *platform, *match_str; - int vendor_id, product_id, i; - GPilotDevice *device; - DBusError error; -@@ -1090,15 +1090,23 @@ - - load_devices_xml (); - -- /* HAL match rule: we look for info.bus == 'usb_device' -+ /* HAL match rule: we look for pda.platform == 'palm' -+ * (or the legacy info.bus == 'usb_device') - * and then try to match the usb_device.product_id and usb_device.vendor_id - * against the list in devices.xml. - */ -- if (!(bus = libhal_device_get_property_string (hal_ctx, udi, "info.bus", NULL))) -+ if (platform = libhal_device_get_property_string (hal_ctx, udi, "pda.platform", NULL)) { -+ if (strcmp (platform, "palm") != 0) { -+ libhal_free_string (platform); - return; -- if (strcmp (bus, "usb_device") != 0) { -+ } -+ } else if (bus = libhal_device_get_property_string (hal_ctx, udi, "info.bus", NULL)) { -+ if (strcmp (bus, "usb_device") != 0) { - libhal_free_string (bus); - return; -+ } -+ } else { -+ return; - } - - dbus_error_init (&error); |