[gnome-software/gnome-3-22] trivial: Show potential GsFlatpak matches in the debug log
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] trivial: Show potential GsFlatpak matches in the debug log
- Date: Tue, 7 Mar 2017 16:32:49 +0000 (UTC)
commit 688c83600d25d17439d335658076c447b65c49c7
Author: Richard Hughes <richard hughsie com>
Date: Tue Feb 21 16:06:10 2017 +0000
trivial: Show potential GsFlatpak matches in the debug log
src/plugins/gs-flatpak.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 43a038b..23de4ed 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1803,8 +1803,19 @@ gs_flatpak_refine_appstream (GsFlatpak *self, GsApp *app, GError **error)
item = as_store_get_app_by_unique_id (self->store,
unique_id,
AS_STORE_SEARCH_FLAG_USE_WILDCARDS);
- if (item == NULL)
+ if (item == NULL) {
+ g_autoptr(GPtrArray) apps = NULL;
+ apps = as_store_get_apps_by_id (self->store, gs_app_get_id (app));
+ if (apps->len > 0) {
+ g_debug ("potential matches for %s:", unique_id);
+ for (guint i = 0; i < apps->len; i++) {
+ AsApp *app_tmp = g_ptr_array_index (apps, i);
+ g_debug ("- %s", as_app_get_unique_id (app_tmp));
+ }
+ }
return TRUE;
+ }
+
if (!gs_appstream_refine_app (self->plugin, app, item, error))
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]