summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Willadsen <kai.willadsen@gmail.com>2016-08-21 16:00:35 +1000
committerRichard Hughes <richard@hughsie.com>2016-08-21 07:00:35 +0100
commitd2e402bc5db68c33e870990d37b2e2a172f0b8cc (patch)
treef2e668e481112e670179fb445741159ef3a3b200
parentec5c1305fa350bbda57beaaf12bb9c5efcb1d0de (diff)
downloadappstream-glib-d2e402bc5db68c33e870990d37b2e2a172f0b8cc.tar.gz
Make upgrade check for SPDX license string (#131)
The project license can be any valid SPDX license string, so instead of checking for a single license, the upgrade command should treat e.g., dual licenses as valid.
-rw-r--r--client/as-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/as-util.c b/client/as-util.c
index f3af154..c3c525d 100644
--- a/client/as-util.c
+++ b/client/as-util.c
@@ -281,9 +281,9 @@ as_util_convert_appdata (GFile *file_input,
as_node_set_comment (n2, "FIXME: Use https://spdx.org/licenses/");
} else {
/* ensure in SPDX format */
- if (!as_utils_is_spdx_license_id (as_node_get_data (n2))) {
+ if (!as_utils_is_spdx_license (as_node_get_data (n2))) {
action_required = TRUE;
- as_node_set_comment (n2, "FIXME: convert to an SPDX ID");
+ as_node_set_comment (n2, "FIXME: convert to an SPDX license string");
}
}