From 443e03397cb1e63d11eb6e94cf1cdcda742b338a Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 14 2020 12:05:22 +0000 Subject: Apply patch gphoto2-storage.patch patch_name: gphoto2-storage.patch present_in_specfile: true location_in_specfile: 2 --- diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c index b0b0bee..fe982c4 100644 --- a/packaging/generic/print-camera-list.c +++ b/packaging/generic/print-camera-list.c @@ -1019,6 +1019,8 @@ fdi_begin_func (const func_params_t *params, void **data) printf("\n"); printf(" \n"); printf(" \n"); + printf(" \n"); + printf(" \n"); return 0; } @@ -1058,62 +1060,62 @@ fdi_camera_func (const func_params_t *params, return 0; } if (a->usb_vendor) { /* usb product id might be 0! */ - printf(" \n", a->usb_vendor); - printf(" \n", a->usb_product); + printf(" \n", a->usb_vendor); + printf(" \n", a->usb_product); if (a->usb_vendor == 0x05ac) { /* Apple iPhone, PTP user. */ - printf(" \n"); - printf(" \n"); - printf(" \n"); + printf(" \n"); + printf(" \n"); + printf(" \n"); } if (a->device_type & GP_DEVICE_AUDIO_PLAYER) { - printf(" portable_audio_player\n"); - printf(" portable_audio_player\n"); - printf(" user\n"); - printf(" mtp\n"); + printf(" portable_audio_player\n"); + printf(" portable_audio_player\n"); + printf(" user\n"); + printf(" mtp\n"); /* FIXME: needs true formats ... But all of them can do MP3 */ - printf(" audio/mpeg\n"); + printf(" audio/mpeg\n"); } else { - printf(" camera\n"); - printf(" camera\n"); + printf(" camera\n"); + printf(" camera\n"); /* HACK alert ... but the HAL / gnome-volume-manager guys want that */ if (NULL!=strstr(a->library,"ptp")) - printf(" ptp\n"); + printf(" ptp\n"); else - printf(" proprietary\n"); + printf(" proprietary\n"); } /* leave them here even for audio players */ - printf(" %s\n", model); - printf(" true\n"); + printf(" %s\n", model); + printf(" true\n"); if (a->usb_vendor == 0x05ac) { /* Apple iPhone */ + printf(" \n"); printf(" \n"); printf(" \n"); - printf(" \n"); } + printf(" \n"); printf(" \n"); - printf(" \n"); } else if ((a->usb_class) && (a->usb_class != 666)) { - printf(" \n", a->usb_class); - printf(" \n", a->usb_subclass); - printf(" \n", a->usb_protocol); - printf(" camera\n"); - printf(" camera\n"); + printf(" \n", a->usb_class); + printf(" \n", a->usb_subclass); + printf(" \n", a->usb_protocol); + printf(" camera\n"); + printf(" camera\n"); if (a->usb_class == 6) { - printf(" ptp\n"); + printf(" ptp\n"); } else { if (a->usb_class == 8) { - printf(" storage\n"); + printf(" storage\n"); } else { - printf(" proprietary\n"); + printf(" proprietary\n"); } } - printf(" %s\n", model); - printf(" true\n"); + printf(" %s\n", model); + printf(" true\n"); + printf(" \n"); printf(" \n"); printf(" \n"); - printf(" \n"); } } /* camera has USB connection */ return 0; @@ -1122,6 +1124,7 @@ fdi_camera_func (const func_params_t *params, static int fdi_end_func (const func_params_t *params, void *data) { + printf(" \n"); printf(" \n"); printf(" \n"); printf("\n"); @@ -1148,6 +1151,8 @@ fdi_device_begin_func (const func_params_t *params, void **data) printf("\n"); printf(" \n"); printf(" \n"); + printf(" \n"); + printf(" \n"); return 0; } @@ -1191,28 +1196,28 @@ fdi_device_camera_func (const func_params_t *params, /* do not set category. We don't really know what this device really is. * But we do now that is capable of being a camera, so add to capabilities */ - printf(" \n", a->usb_vendor); - printf(" \n", a->usb_product); + printf(" \n", a->usb_vendor); + printf(" \n", a->usb_product); if (params->add_comments) { printf(" \n", a->model); } if (a->device_type & GP_DEVICE_AUDIO_PLAYER) - printf(" portable_audio_player\n"); + printf(" portable_audio_player\n"); else - printf(" camera\n"); + printf(" camera\n"); + printf(" \n"); printf(" \n"); - printf(" \n"); } #if 0 /* would need to be able to merge upwards ... but cannot currently */ else if ((a->usb_class) && (a->usb_class != 666)) { - printf(" \n", a->usb_class); - printf(" \n", a->usb_subclass); - printf(" \n", a->usb_protocol); - printf(" camera\n"); + printf(" \n", a->usb_class); + printf(" \n", a->usb_subclass); + printf(" \n", a->usb_protocol); + printf(" camera\n"); + printf(" \n"); printf(" \n"); printf(" \n"); - printf(" \n"); } #endif } @@ -1222,6 +1227,7 @@ fdi_device_camera_func (const func_params_t *params, static int fdi_device_end_func (const func_params_t *params, void *data) { + printf(" \n"); printf(" \n"); printf(" \n"); printf("\n");