[gnome-software] trivial: Also refine the flatpak runtime state at the same time as the app



commit 8b12595d22b07635b8790144b7a4ae374ea8ec20
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jun 2 19:16:26 2016 +0100

    trivial: Also refine the flatpak runtime state at the same time as the app

 src/plugins/gs-flatpak.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 9c94076..b94e2ef 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1079,6 +1079,7 @@ gs_flatpak_refine_app (GsPlugin *plugin,
                       GError **error)
 {
        g_autoptr(AsProfileTask) ptask = NULL;
+       GsApp *app_runtime;
 
        /* only process this app if was created by this plugin */
        if (g_strcmp0 (gs_app_get_management_plugin (app),
@@ -1101,6 +1102,15 @@ gs_flatpak_refine_app (GsPlugin *plugin,
        if (!gs_plugin_refine_item_state (plugin, installation, app,
                                          cancellable, error))
                return FALSE;
+       app_runtime = gs_app_get_runtime (app);
+       if (app_runtime != NULL) {
+               if (!gs_plugin_refine_item_state (plugin,
+                                                 installation,
+                                                 app_runtime,
+                                                 cancellable,
+                                                 error))
+                       return FALSE;
+       }
 
        /* version fallback */
        if (flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_VERSION) {


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