[gnome-software/wip/kalev/gnome-3-22: 87/96] trivial: Do not use the	temporary GsFlatpak for searching
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-software/wip/kalev/gnome-3-22: 87/96] trivial: Do not use the	temporary GsFlatpak for searching
- Date: Tue,  7 Mar 2017 16:31:23 +0000 (UTC)
commit f4ea7cbf4e0daa4edb2b29320b22bfcca4ec1230
Author: Richard Hughes <richard hughsie com>
Date:   Fri Feb 24 19:55:01 2017 +0000
    trivial: Do not use the temporary GsFlatpak for searching
    
    We don't want to show previously double-clicked-flatpakrefs that were not
    installed in the search results.
 src/plugins/gs-plugin-flatpak.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-flatpak.c b/src/plugins/gs-plugin-flatpak.c
index 29b155d..4b3fbf2 100644
--- a/src/plugins/gs-plugin-flatpak.c
+++ b/src/plugins/gs-plugin-flatpak.c
@@ -458,6 +458,8 @@ gs_plugin_add_search (GsPlugin *plugin,
        GsPluginData *priv = gs_plugin_get_data (plugin);
        for (guint i = 0; i < priv->flatpaks->len; i++) {
                GsFlatpak *flatpak = g_ptr_array_index (priv->flatpaks, i);
+               if (gs_flatpak_get_flags (flatpak) & GS_FLATPAK_FLAG_IS_TEMPORARY)
+                       continue;
                if (!gs_flatpak_search (flatpak, values, list,
                                        cancellable, error)) {
                        return FALSE;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]