Commit 8e1a6e74 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

appstream: Treat unknown licences

It's not very useful if their user-facing text is "".
parent 610c2152
......@@ -82,6 +82,12 @@ QJsonObject AppStreamUtils::license(const QString &license)
publicLicense = true;
if (license.isEmpty()) {
return {
{QStringLiteral("name"), i18n("Unknown")},
{QStringLiteral("hasFreedom"), true}, // give it the benefit of the doubt
if (!AppStream::SPDX::isLicenseId(license))
return {
{QStringLiteral("name"), name},
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