Commit a234988b authored by Matthias Klumpp's avatar Matthias Klumpp
Browse files

trivial: Print slightly nicer validator issue for wrong license IDs

parent 8e1d386f
......@@ -153,7 +153,7 @@ AsValidatorIssueTag as_validator_issue_tag_list[] = {
{ "spdx-license-unknown",
AS_ISSUE_SEVERITY_WARNING,
N_("The license ID is not found in the SPDX database. "
N_("The license ID was not found in the SPDX database. "
"Please check that the license ID is written in an SPDX-conformant way and is a valid free software license.")
},
......
......@@ -808,6 +808,7 @@ as_validator_validate_project_license (AsValidator *validator, xmlNode *license_
return;
}
for (i = 0; licenses[i] != NULL; i++) {
g_strstrip (licenses[i]);
if (g_strcmp0 (licenses[i], "&") == 0 ||
g_strcmp0 (licenses[i], "|") == 0 ||
g_strcmp0 (licenses[i], "+") == 0 ||
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment