[gnome-software/wip/hughsie/xdg-app: 35/39] trivial: Show a warning if the management plugin changes
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/xdg-app: 35/39] trivial: Show a warning if the management plugin changes
- Date: Mon, 18 Jan 2016 15:04:35 +0000 (UTC)
commit d8b843d86461e2fe76deafbe26b84facaca2790c
Author: Richard Hughes <richard hughsie com>
Date: Mon Jan 18 13:12:44 2016 +0000
trivial: Show a warning if the management plugin changes
src/gs-app.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 1fdef87..b0977cb 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -2128,6 +2128,14 @@ gs_app_subsume (GsApp *app, GsApp *other)
gs_app_set_description (app, other->description_quality, other->description);
if (other->update_details != NULL)
gs_app_set_update_details (app, other->update_details);
+ if (other->management_plugin != NULL &&
+ app->management_plugin != NULL &&
+ g_strcmp0 (other->management_plugin, app->management_plugin) != 0) {
+ g_warning ("%s changing management plugin %s->%s",
+ app->id,
+ app->management_plugin,
+ other->management_plugin);
+ }
if (other->update_urgency != AS_URGENCY_KIND_UNKNOWN)
gs_app_set_update_urgency (app, other->update_urgency);
if (other->update_version != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]