diff options
author | Richard Hughes <richard@hughsie.com> | 2014-08-14 10:01:18 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-08-18 10:43:17 +0100 |
commit | 9c697e6d9241d0a01391d162708d0aa42beee24c (patch) | |
tree | 0bbfa4a071cfdba17df555e5fdc916027c97220b | |
parent | 086751082375a2ecf46bae73bb8f50cedea245a7 (diff) | |
download | appstream-glib-9c697e6d9241d0a01391d162708d0aa42beee24c.tar.gz |
trivial: Warn when discarding addons because of API version
This would have saved a lot of head-scratching this morning...
-rw-r--r-- | libappstream-glib/as-app.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; + } /* <component> or <application> */ if (api_version >= 0.6) { |