flatpak-builtins-search.c (flatpak-1.15.1.tar.xz) | : | flatpak-builtins-search.c (flatpak-1.15.2.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 288 | skipping to change at line 288 | |||
for (i = 0; i < apps->len; ++i) | for (i = 0; i < apps->len; ++i) | |||
{ | { | |||
AsComponent *app = g_ptr_array_index (apps, i); | AsComponent *app = g_ptr_array_index (apps, i); | |||
const char *remote_name = g_object_get_data (G_OBJECT (mdata), "remote -name"); | const char *remote_name = g_object_get_data (G_OBJECT (mdata), "remote -name"); | |||
g_autoptr(FlatpakDecomposed) decomposed = NULL; | g_autoptr(FlatpakDecomposed) decomposed = NULL; | |||
AsBundle *bundle = as_component_get_bundle (app, AS_BUNDLE_KIND_FLATPA K); | AsBundle *bundle = as_component_get_bundle (app, AS_BUNDLE_KIND_FLATPA K); | |||
if (bundle == NULL || as_bundle_get_id (bundle) == NULL || | if (bundle == NULL || as_bundle_get_id (bundle) == NULL || | |||
(decomposed = flatpak_decomposed_new_from_ref (as_bundle_get_id (b undle), NULL)) == NULL) | (decomposed = flatpak_decomposed_new_from_ref (as_bundle_get_id (b undle), NULL)) == NULL) | |||
{ | { | |||
g_debug ("Ignoring app %s from remote %s as it lacks a flatpak bun | g_info ("Ignoring app %s from remote %s as it lacks a flatpak bund | |||
dle", | le", | |||
as_component_get_id (app), remote_name); | as_component_get_id (app), remote_name); | |||
continue; | continue; | |||
} | } | |||
g_object_set_data_full (G_OBJECT (app), "decomposed", g_steal_pointer (&decomposed), | g_object_set_data_full (G_OBJECT (app), "decomposed", g_steal_pointer (&decomposed), | |||
(GDestroyNotify) flatpak_decomposed_unref); | (GDestroyNotify) flatpak_decomposed_unref); | |||
guint score = as_component_search_matches (app, search_text); | guint score = as_component_search_matches (app, search_text); | |||
if (score == 0) | if (score == 0) | |||
{ | { | |||
g_autofree char *app_id = component_get_flatpak_id (app); | g_autofree char *app_id = component_get_flatpak_id (app); | |||
End of changes. 1 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |