[gnome-software/gnome-3-24] Add the complete flatpak source as a keyword



commit b24ca360552e216e0460956171a0d8fa8ccefd83
Author: Richard Hughes <richard hughsie com>
Date:   Sat Apr 15 09:12:08 2017 +0100

    Add the complete flatpak source as a keyword
    
    This is an incomplete fix as really the name needs splitting into tokens in the
    case of sources like gnome-apps-nightly.

 plugins/flatpak/gs-flatpak.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 56b7e80..aa7c562 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -248,6 +248,15 @@ gs_flatpak_add_apps_from_xremote (GsFlatpak *self,
                return FALSE;
        }
 
+       /* add the origin as a keyword */
+       for (i = 0; i < apps->len; i++) {
+               AsApp *app = g_ptr_array_index (apps, i);
+               g_debug ("adding keyword '%s' to %s",
+                        flatpak_remote_get_name (xremote),
+                        as_app_get_id (app));
+               as_app_add_keyword (app, NULL, flatpak_remote_get_name (xremote));
+       }
+
        /* ensure the token cache */
        as_store_load_search_cache (store);
 


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