From 1cc0e4bcf037f0ede22f96d8d2ca562eb4620695 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 24 Aug 2015 08:03:26 +0200 Subject: also mode/group handling to generic ptp matcher in v201 --- packaging/generic/print-camera-list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c index 7e5f4b1b2..498086545 100644 --- a/packaging/generic/print-camera-list.c +++ b/packaging/generic/print-camera-list.c @@ -431,7 +431,7 @@ udev_parse_params (const func_params_t *params, void **data) "ENV{ID_USB_INTERFACES}==\"\", IMPORT{builtin}=\"usb_id\"\n" /* shortcut the most common camera driver, ptp class, so we avoid parsing 1000 * more rules . It will be completed in udev_begin_func() */ - "ENV{ID_USB_INTERFACES}==\"*:060101:*\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"PTP\"", + "ENV{ID_USB_INTERFACES}==\"*:060101:*\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"PTP\", ", }; static const char * const usbcam_strings[] = { /* UDEV_PRE_0_98 */ @@ -535,7 +535,7 @@ udev_begin_func (const func_params_t *params, void **data) printf ("# this file is autogenerated, local changes will be LOST on upgrades\n"); printf ("%s", pdata->begin_string); - if (pdata->version == UDEV_136 || pdata->version == UDEV_175) { + if (pdata->version == UDEV_136 || pdata->version == UDEV_175 || pdata->version == UDEV_201) { if (pdata->mode != NULL || pdata->owner != NULL || pdata->group != NULL) { if (pdata->mode != NULL) { printf("MODE=\"%s\", ", pdata->mode); -- cgit v1.2.1