[gnome-software] trivial: Do not use the temporary GsFlatpak for searching
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Do not use the temporary GsFlatpak for searching
- Date: Mon, 27 Feb 2017 11:57:32 +0000 (UTC)
commit e6713675cea00c145a59c423f7127119cf87badd
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 38780d8..0895ca8 100644
--- a/src/plugins/gs-plugin-flatpak.c
+++ b/src/plugins/gs-plugin-flatpak.c
@@ -484,6 +484,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]