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



commit bbabcca71d72adc77871b50e3f00e807b27910a7
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

 plugins/flatpak/gs-flatpak.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 44c18c4..56dd396 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -3326,6 +3326,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]