[gnome-software/wip/ubuntu-xenial] Add code accidentally dropped in merge



commit 9661ed6ac027827c83a507d0709f7491fd266979
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Aug 15 16:37:21 2016 +1200

    Add code accidentally dropped in merge

 src/gs-plugin-loader.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index e9a16c5..a8a47a1 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -3663,6 +3663,8 @@ gs_plugin_loader_filename_to_app_thread_cb (GTask *task,
        GsPlugin *plugin;
        GsPluginFilenameToAppFunc plugin_func = NULL;
        guint i;
+       g_autoptr(GFile) file = NULL;
+       GList *l;
 
        /* run each plugin */
        for (i = 0; i < priv->plugins->len; i++) {
@@ -3696,6 +3698,14 @@ gs_plugin_loader_filename_to_app_thread_cb (GTask *task,
                gs_plugin_status_update (plugin, NULL, GS_PLUGIN_STATUS_FINISHED);
        }
 
+       /* set the local file on any of the returned results */
+       file = g_file_new_for_path (state->filename);
+       for (l = state->list; l != NULL; l = l->next) {
+               GsApp *app = GS_APP (l->data);
+               if (gs_app_get_local_file (app) == NULL)
+                       gs_app_set_local_file (app, file);
+       }
+
        /* run refine() on each one */
        ret = gs_plugin_loader_run_refine (plugin_loader,
                                           function_name,


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