diff options
author | Richard Hughes <richard@hughsie.com> | 2017-01-03 10:31:52 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-01-03 10:31:52 +0000 |
commit | 8fb8ec0deb71ee2b49ecfe6718272896a28694c9 (patch) | |
tree | 7876b669685bc7acb106a9852973fe9e48fcea58 /libappstream-builder/plugins | |
parent | ee450bd49c6c6d4a89d14d88e93334805524aecc (diff) | |
download | appstream-glib-8fb8ec0deb71ee2b49ecfe6718272896a28694c9.tar.gz |
trivial: Treat generic components just like addons
Diffstat (limited to 'libappstream-builder/plugins')
-rw-r--r-- | libappstream-builder/plugins/asb-plugin-gettext.c | 2 | ||||
-rw-r--r-- | libappstream-builder/plugins/asb-plugin-hardcoded.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-gettext.c b/libappstream-builder/plugins/asb-plugin-gettext.c index 1e67a85..5678fea 100644 --- a/libappstream-builder/plugins/asb-plugin-gettext.c +++ b/libappstream-builder/plugins/asb-plugin-gettext.c @@ -50,6 +50,8 @@ asb_plugin_process_app (AsbPlugin *plugin, /* skip for addons */ if (as_app_get_kind (AS_APP (app)) == AS_APP_KIND_ADDON) return TRUE; + if (as_app_get_kind (AS_APP (app)) == AS_APP_KIND_GENERIC) + return TRUE; /* auto-add this */ translations = as_app_get_translations (AS_APP (app)); diff --git a/libappstream-builder/plugins/asb-plugin-hardcoded.c b/libappstream-builder/plugins/asb-plugin-hardcoded.c index 8563394..46a2098 100644 --- a/libappstream-builder/plugins/asb-plugin-hardcoded.c +++ b/libappstream-builder/plugins/asb-plugin-hardcoded.c @@ -54,6 +54,8 @@ asb_plugin_process_app (AsbPlugin *plugin, /* skip for addons */ if (as_app_get_kind (AS_APP (app)) == AS_APP_KIND_ADDON) return TRUE; + if (as_app_get_kind (AS_APP (app)) == AS_APP_KIND_GENERIC) + return TRUE; /* look for any installed docs */ filelist = asb_package_get_filelist (pkg); |