summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-01-03 10:31:52 +0000
committerRichard Hughes <richard@hughsie.com>2017-01-03 10:31:52 +0000
commit8fb8ec0deb71ee2b49ecfe6718272896a28694c9 (patch)
tree7876b669685bc7acb106a9852973fe9e48fcea58
parentee450bd49c6c6d4a89d14d88e93334805524aecc (diff)
downloadappstream-glib-8fb8ec0deb71ee2b49ecfe6718272896a28694c9.tar.gz
trivial: Treat generic components just like addons
-rw-r--r--libappstream-builder/plugins/asb-plugin-gettext.c2
-rw-r--r--libappstream-builder/plugins/asb-plugin-hardcoded.c2
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);