summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-12-06 13:28:29 +0000
committerRichard Hughes <richard@hughsie.com>2016-12-06 13:29:13 +0000
commit8742b2356f22b84aecbfec979fa940ebf98b6bfc (patch)
tree1453e84c52718169d89cefc1d564646bee55878f
parent6fff3bfcdd9e1cfcb30fd3c4fc9ddea236cb983b (diff)
downloadappstream-glib-8742b2356f22b84aecbfec979fa940ebf98b6bfc.tar.gz
Don't add <provides> for addons
-rw-r--r--libappstream-glib/as-app-builder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-app-builder.c b/libappstream-glib/as-app-builder.c
index 32fe467..9335d0d 100644
--- a/libappstream-glib/as-app-builder.c
+++ b/libappstream-glib/as-app-builder.c
@@ -763,6 +763,10 @@ as_app_builder_search_provides (AsApp *app,
AsAppBuilderFlags flags,
GError **error)
{
+ /* skip for addons */
+ if (as_app_get_kind (AS_APP (app)) == AS_APP_KIND_ADDON)
+ return TRUE;
+
if (!as_app_builder_search_dbus (app, prefix,
"share/dbus-1/system-services",
AS_PROVIDE_KIND_DBUS_SYSTEM,