[gnome-software/gnome-3-20] Allow specifing the plugin to use in the local AppStream cache



commit be5f29102b7999830c31a7f5fbdc890502f7257f
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 23 12:37:37 2016 +0000

    Allow specifing the plugin to use in the local AppStream cache
    
    This reduces the delta against master.

 src/plugins/gs-appstream.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index cbe18bc..0c390fc 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -321,6 +321,13 @@ gs_refine_item_management_plugin (GsApp *app, AsApp *item)
        const gchar *runtime = NULL;
        guint i;
 
+       /* allow override */
+       management_plugin = as_app_get_metadata_item (item, "GnomeSoftware::Plugin");
+       if (management_plugin != NULL) {
+               gs_app_set_management_plugin (app, management_plugin);
+               return;
+       }
+
        /* find the default bundle kind */
        bundles = as_app_get_bundles (item);
        for (i = 0; i < bundles->len; i++) {


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