[gnome-software] trivial: Fix getting updates with gnome-software-cmd
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix getting updates with gnome-software-cmd
- Date: Wed, 30 Oct 2013 19:44:58 +0000 (UTC)
commit 174dc9a104c63f0312dde44a93c6ae5a53c9d61b
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 30 17:28:19 2013 +0000
trivial: Fix getting updates with gnome-software-cmd
Do not set the package name as the source ID when getting updates using PackageKit
src/plugins/gs-plugin-packagekit-updates.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-updates.c b/src/plugins/gs-plugin-packagekit-updates.c
index 3730458..0527f9f 100644
--- a/src/plugins/gs-plugin-packagekit-updates.c
+++ b/src/plugins/gs-plugin-packagekit-updates.c
@@ -145,7 +145,8 @@ gs_plugin_add_updates (GsPlugin *plugin,
for (i = 0; i < array->len; i++) {
pkg = g_ptr_array_index (array, i);
app = gs_app_new (NULL);
- gs_app_add_source_id (app, pk_package_get_name (pkg));
+ gs_app_set_source_default (app, pk_package_get_name (pkg));
+ gs_app_add_source_id (app, pk_package_get_id (pkg));
gs_app_set_update_version (app, pk_package_get_version (pkg));
gs_app_set_management_plugin (app, "PackageKit");
gs_app_set_state (app, GS_APP_STATE_UPDATABLE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]