Failed to find package data for each of X apps, received Y packages instead
Forked from !1752 (comment 1825503), now that it's merged.
Sid wrote:
I get the following in my system. This was with the refine optimization patch disabled.
GsPluginPackageKit search_files_cb: Failed to find package data for each of 177 apps, received 74 packages instead
Milan wrote:
Okay. Does it mean the comment is "just for your information" or it's showing any issue, please? I ask, because that's what I'm missing, a problem behind it. I'm sorry, I feel slow today.
if (packages->len != gs_app_list_length (search_files_data->app_list)) {
g_debug ("%s: Failed to find package data for each of %u apps, received %u packages instead",
G_STRFUNC, gs_app_list_length (search_files_data->app_list), packages->len);
} else {
g_debug ("%s: Received package data for all %u apps", G_STRFUNC, packages->len);
}
-
I think the comparison in the above code is incorrect.
packages
is the actual systemdesktop-app
s returned by thesearch-file
query, whereassearch_files_data->app_list
is totally unfiltered data set ( which includes flatpaks / fonts etc ).to_array
is what is probably need here, if we need an_query
<->n_results
comparison. -
I have around 120 apps listed in the GS ui in
Installed
tab ( very few flatpak apps = ~5 ). So what is this 74 package subset.E.g.
I have glade .deb installed in my system.
$ dpkg -S /usr/share/applications/org.gnome.Glade.desktop glade: /usr/share/applications/org.gnome.Glade.desktop
But, I don't see this in the
search-file
query. Is this expected ? What exactly are we searching here ?