[gnome-software] trivial: Show potential GsFlatpak matches in the debug log
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Show potential GsFlatpak matches in the debug log
- Date: Wed, 22 Feb 2017 19:35:52 +0000 (UTC)
commit 853f0124455caf3027b6b2774bbddf7d0331573b
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 ebe0a3a..fff4237 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1958,8 +1958,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]