[gnome-software] trivial: Actually mark the runtime as installed at the right point



commit b77cbafc3fa7e0e7f5da9d79792e160240b585d1
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 17 11:38:41 2016 +0000

    trivial: Actually mark the runtime as installed at the right point

 src/plugins/gs-plugin-xdg-app.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-xdg-app.c b/src/plugins/gs-plugin-xdg-app.c
index f0c8bb5..0d43ba8 100644
--- a/src/plugins/gs-plugin-xdg-app.c
+++ b/src/plugins/gs-plugin-xdg-app.c
@@ -1252,7 +1252,7 @@ gs_plugin_app_install (GsPlugin *plugin,
                                gs_app_set_state (runtime, AS_APP_STATE_AVAILABLE);
                                return FALSE;
                        }
-                       gs_app_set_state (app, AS_APP_STATE_INSTALLED);
+                       gs_app_set_state (runtime, AS_APP_STATE_INSTALLED);
                } else {
                        g_debug ("%s is already installed, so skipping",
                                 gs_app_get_id (runtime));


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