From 9c697e6d9241d0a01391d162708d0aa42beee24c Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 14 Aug 2014 10:01:18 +0100 Subject: trivial: Warn when discarding addons because of API version This would have saved a lot of head-scratching this morning... --- libappstream-glib/as-app.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 725c829..9ccbf4e 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -2540,8 +2540,11 @@ as_app_node_insert (AsApp *app, GNode *parent, gdouble api_version) static gint old_prio_value = 0; /* no addons allowed here */ - if (api_version < 0.7 && priv->id_kind == AS_ID_KIND_ADDON) + if (api_version < 0.7 && priv->id_kind == AS_ID_KIND_ADDON) { + g_warning ("Not writing addon '%s' as API version %.1f < 0.7", + priv->id_full, api_version); return NULL; + } /* or */ if (api_version >= 0.6) { -- cgit v1.2.1