You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/profiles/patches/media-libs/libgphoto2-2.4.10-fix_gener...

30 lines
1.3 KiB

diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c
index 810c197..0108f9b 100644
--- a/packaging/generic/print-camera-list.c
+++ b/packaging/generic/print-camera-list.c
@@ -414,7 +414,7 @@ udev_parse_params (const func_params_t *params, void **data)
"ENV{ID_USB_INTERFACES}==\"*:08*:*\", GOTO=\"libgphoto2_usb_end\"\n"
/* shortcut the most common camera driver, ptp class, so we avoid parsing 1000
* more rules */
- "ENV{ID_USB_INTERFACES}==\"*:060101:*\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"PTP\", GOTO=\"libgphoto2_usb_end\"\n\n"
+ "ENV{ID_USB_INTERFACES}==\"*:060101:*\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"PTP\", "
};
static const char * const usbcam_strings[] = {
/* UDEV_PRE_0_98 */
@@ -507,6 +507,15 @@ udev_begin_func (const func_params_t *params, void **data)
print_version_comment(stdout, "# ", "\n", NULL, "#\n");
printf ("# this file is autogenerated, local changes will be LOST on upgrades\n");
printf (pdata->begin_string);
+ if (pdata->version==UDEV_136) {
+ if (pdata->mode != NULL)
+ printf("MODE=\"%s\", ", pdata->mode);
+ if (pdata->owner != NULL)
+ printf("OWNER=\"%s\", ", pdata->owner);
+ if (pdata->group != NULL)
+ printf("GROUP=\"%s\", ", pdata->group);
+ printf ("GOTO=\"libgphoto2_usb_end\"\n\n");
+ }
}
return 0;
}