[gnome-software/gnome-3-20] trivial: Set the management plugin for PackageKit distro upgrades
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-20] trivial: Set the management plugin for PackageKit distro upgrades
- Date: Thu, 14 Apr 2016 17:31:06 +0000 (UTC)
commit cd5d813755eec75ec9f1e7188a0b4f19de751df2
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 14 14:52:21 2016 +0100
trivial: Set the management plugin for PackageKit distro upgrades
src/plugins/gs-plugin-fedora-distro-upgrades.c | 1 +
src/plugins/gs-plugin-packagekit.c | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fedora-distro-upgrades.c b/src/plugins/gs-plugin-fedora-distro-upgrades.c
index c41a36d..534ecb6 100644
--- a/src/plugins/gs-plugin-fedora-distro-upgrades.c
+++ b/src/plugins/gs-plugin-fedora-distro-upgrades.c
@@ -254,6 +254,7 @@ gs_plugin_add_distro_upgrades (GsPlugin *plugin,
gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
gs_app_set_name (app, GS_APP_QUALITY_LOWEST, distro_info->name);
gs_app_set_version (app, app_version);
+ gs_app_set_management_plugin (app, "packagekit");
gs_plugin_add_app (list, app);
}
diff --git a/src/plugins/gs-plugin-packagekit.c b/src/plugins/gs-plugin-packagekit.c
index 9cc7640..1d9735a 100644
--- a/src/plugins/gs-plugin-packagekit.c
+++ b/src/plugins/gs-plugin-packagekit.c
@@ -642,6 +642,10 @@ gs_plugin_app_upgrade_download (GsPlugin *plugin,
ProgressData data;
g_autoptr(PkResults) results = NULL;
+ /* only process this app if was created by this plugin */
+ if (g_strcmp0 (gs_app_get_management_plugin (app), plugin->name) != 0)
+ return TRUE;
+
data.app = app;
data.plugin = plugin;
data.ptask = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]