[gnome-software] Add the complete flatpak source as a keyword
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Add the complete flatpak source as a keyword
- Date: Sat, 15 Apr 2017 17:42:12 +0000 (UTC)
commit 545172a92ecd2d86ac837ed0bd2f76b6dd78b72f
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]