diff options
author | Richard Hughes <richard@hughsie.com> | 2015-12-09 15:01:42 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-12-09 16:14:48 +0000 |
commit | ac8575f1568378afc7a4e12d77a2461b970b9e02 (patch) | |
tree | 35c050c6215912f75e083bacbf82419b5d3f9626 /libappstream-builder/asb-task.c | |
parent | 1681d0514ad07848b1ca3ddc10287b213075c812 (diff) | |
download | appstream-glib-ac8575f1568378afc7a4e12d77a2461b970b9e02.tar.gz |
Only use the package license when not provided by the AppData file
In doing so, we found a number of invalid AppData files, so fix up the values
the best we can.
Diffstat (limited to 'libappstream-builder/asb-task.c')
-rw-r--r-- | libappstream-builder/asb-task.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libappstream-builder/asb-task.c b/libappstream-builder/asb-task.c index 5e747c8..8a8b2cc 100644 --- a/libappstream-builder/asb-task.c +++ b/libappstream-builder/asb-task.c @@ -403,7 +403,8 @@ asb_task_process (AsbTask *task, GError **error_not_used) AS_URL_KIND_HOMEPAGE, asb_package_get_url (priv->pkg)); } - if (asb_package_get_license (priv->pkg) != NULL) { + if (asb_package_get_license (priv->pkg) != NULL && + as_app_get_project_license (AS_APP (app)) == NULL) { as_app_set_project_license (AS_APP (app), asb_package_get_license (priv->pkg)); } |