Skip to content

snap: Fix 'snapd_client_find_section_*()' deprecation warnings

Sid requested to merge sid/gnome-software:snap_section_to_category_switch into main

Fixes the following warnings:

../plugins/snap/gs-plugin-snap.c:370:9: warning: ‘snapd_client_find_section_sync’ is deprecated: Use 'snapd_client_find_category_sync' instead [-Wdeprecated-declarations]
../plugins/snap/gs-plugin-snap.c:507:9: warning: ‘snapd_client_find_section_async’ is deprecated: Use 'snapd_client_find_category_async' instead [-Wdeprecated-declarations]
../plugins/snap/gs-plugin-snap.c:528:9: warning: ‘snapd_client_find_section_finish’ is deprecated: Use 'snapd_client_find_category_finish' instead [-Wdeprecated-declarations]
../plugins/snap/gs-plugin-snap.c:538:17: warning: ‘snapd_client_find_section_async’ is deprecated: Use 'snapd_client_find_category_async' instead [-Wdeprecated-declarations]
../plugins/snap/gs-plugin-snap.c:761:25: warning: ‘snapd_client_find_section_async’ is deprecated: Use 'snapd_client_find_category_async' instead [-Wdeprecated-declarations]
../plugins/snap/gs-plugin-snap.c:782:17: warning: ‘snapd_client_find_section_async’ is deprecated: Use 'snapd_client_find_category_async' instead [-Wdeprecated-declarations]
../plugins/snap/gs-plugin-snap.c:832:17: warning: ‘snapd_client_find_section_async’ is deprecated: Use 'snapd_client_find_category_async' instead [-Wdeprecated-declarations]
../plugins/snap/gs-plugin-snap.c:900:9: warning: ‘snapd_client_find_section_finish’ is deprecated: Use 'snapd_client_find_category_finish' instead [-Wdeprecated-declarations]
../plugins/snap/gs-plugin-snap.c:952:9: warning: ‘snapd_client_find_section_finish’ is deprecated: Use 'snapd_client_find_category_finish' instead [-Wdeprecated-declarations]
../plugins/snap/gs-plugin-snap.c:1095:9: warning: ‘snapd_client_find_section_async’ is deprecated: Use 'snapd_client_find_category_async' instead [-Wdeprecated-declarations]
../plugins/snap/gs-plugin-snap.c:1113:9: warning: ‘snapd_client_find_section_finish’ is deprecated: Use 'snapd_client_find_category_finish' instead [-Wdeprecated-declarations]

Also bump snapd-glib-2 to 1.64 which introduced the new snapd_client_find_category_*() API.

Merge request reports

Loading