[gnome-software/gnome-3-22] trivial: Do not search the description when parsing flatpak search tokens



commit 3b7cb00d802280f289b1064357f09c46c9cc4a42
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 8 15:48:20 2017 +0000

    trivial: Do not search the description when parsing flatpak search tokens

 src/plugins/gs-flatpak.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index a3a6827..8be46aa 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -3155,6 +3155,13 @@ gs_flatpak_init (GsFlatpak *self)
                          self);
        as_store_set_add_flags (self->store, AS_STORE_ADD_FLAG_USE_UNIQUE_ID);
        as_store_set_watch_flags (self->store, AS_STORE_WATCH_FLAG_REMOVED);
+       as_store_set_search_match (self->store,
+                                  AS_APP_SEARCH_MATCH_MIMETYPE |
+                                  AS_APP_SEARCH_MATCH_PKGNAME |
+                                  AS_APP_SEARCH_MATCH_COMMENT |
+                                  AS_APP_SEARCH_MATCH_NAME |
+                                  AS_APP_SEARCH_MATCH_KEYWORD |
+                                  AS_APP_SEARCH_MATCH_ID);
 }
 
 GsFlatpak *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]