diff options
author | Richard Hughes <richard@hughsie.com> | 2014-06-17 15:13:04 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-06-17 17:45:48 +0100 |
commit | 16eca4d67fe926703e3b985e1c7d47e0315bb080 (patch) | |
tree | e0a2e7550dc102b25fd71cdad62c58b917f2c51b /libappstream-builder/plugins/asb-plugin-appdata.c | |
parent | 51941f424178eb5628cf7e2d5e9dc641cc2b9bf4 (diff) | |
download | appstream-glib-16eca4d67fe926703e3b985e1c7d47e0315bb080.tar.gz |
Do not require a content license to be included into the metadata
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-appdata.c')
-rw-r--r-- | libappstream-builder/plugins/asb-plugin-appdata.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-appdata.c b/libappstream-builder/plugins/asb-plugin-appdata.c index 3ed5ec1..4636dfc 100644 --- a/libappstream-builder/plugins/asb-plugin-appdata.c +++ b/libappstream-builder/plugins/asb-plugin-appdata.c @@ -153,23 +153,6 @@ asb_plugin_appdata_remove_file (AsbPlugin *plugin, const gchar *filename) } /** - * asb_plugin_appdata_license_valid: - */ -static gboolean -asb_plugin_appdata_license_valid (const gchar *license) -{ - if (g_strcmp0 (license, "CC0-1.0") == 0) - return TRUE; - if (g_strcmp0 (license, "CC-BY-3.0") == 0) - return TRUE; - if (g_strcmp0 (license, "CC-BY-SA-3.0") == 0) - return TRUE; - if (g_strcmp0 (license, "GFDL-1.3") == 0) - return TRUE; - return FALSE; -} - -/** * asb_plugin_process_filename: */ static void @@ -341,7 +324,7 @@ asb_plugin_process_filename (AsbPlugin *plugin, filename); return FALSE; } - if (!asb_plugin_appdata_license_valid (tmp)) { + if (!as_utils_is_spdx_license_id (tmp)) { g_set_error (error, ASB_PLUGIN_ERROR, ASB_PLUGIN_ERROR_FAILED, |