[gnome-software] Fix simulating system upgrades



commit c9941706b2d73150ed509ab1407cd5889b8f8612
Author: Kalev Lember <klember redhat com>
Date:   Mon Jul 4 16:14:47 2016 +0200

    Fix simulating system upgrades

 src/plugins/gs-plugin-packagekit-refine.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index f1743d7..b3430c4 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -749,7 +749,7 @@ gs_plugin_packagekit_refine_distro_upgrade (GsPlugin *plugin,
        /* ask PK to simulate upgrading the system */
        results = pk_client_upgrade_system (priv->client,
                                            pk_bitfield_from_enums (PK_TRANSACTION_FLAG_ENUM_SIMULATE, -1),
-                                           gs_app_get_id (app),
+                                           gs_app_get_version (app),
                                            PK_UPGRADE_KIND_ENUM_COMPLETE,
                                            cancellable,
                                            gs_plugin_packagekit_progress_cb, &data,


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