diff options
Diffstat (limited to 'media-libs/libgphoto2/files/libgphoto2-2.3.1-udev-rules-fix2.diff')
-rw-r--r-- | media-libs/libgphoto2/files/libgphoto2-2.3.1-udev-rules-fix2.diff | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/media-libs/libgphoto2/files/libgphoto2-2.3.1-udev-rules-fix2.diff b/media-libs/libgphoto2/files/libgphoto2-2.3.1-udev-rules-fix2.diff deleted file mode 100644 index 2e939b491b9a..000000000000 --- a/media-libs/libgphoto2/files/libgphoto2-2.3.1-udev-rules-fix2.diff +++ /dev/null @@ -1,28 +0,0 @@ -diff -Nur libgphoto2-2.3.1/packaging/generic/print-camera-list.c libgphoto2-2.3.1-udev-fix/packaging/generic/print-camera-list.c ---- libgphoto2-2.3.1/packaging/generic/print-camera-list.c 2006-12-24 10:16:19.000000000 -0500 -+++ libgphoto2-2.3.1-udev-fix/packaging/generic/print-camera-list.c 2007-01-31 10:39:12.000000000 -0500 -@@ -299,7 +299,7 @@ - /* Note: 2 lines because we need to use || ... having them on the same - * line would mean &&. - */ -- printf ("SUBSYSTEM!=\"usb*\", GOTO=\"libgphoto2_rules_end\"\n"); -+ printf ("SUBSYSTEM!=\"usb_device\", GOTO=\"libgphoto2_rules_end\"\n"); - printf ("ACTION!=\"add\", GOTO=\"libgphoto2_rules_end\"\n\n"); - return 0; - } -@@ -479,9 +479,14 @@ - else - fprintf(stderr,"unhandled interface match flags %x\n", flags); - } -- } else { -+ } else if (flags & GP_USB_HOTPLUG_MATCH_VENDOR_ID) { -+ - printf ("ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ", - a->usb_vendor, a->usb_product); -+ } else { -+ fprintf(stderr, "Attempted to output rule for Camera: \"%s\" , Vendor: \"%04x\" , Product: \"%04x\"", -+ a->model, a->usb_vendor, a->usb_product); -+ return 0; - } - if ((*params->argv)[1] == NULL) { - const char *hotplug_script = ((*params->argv)[0] != NULL) |