Commit 3278f35c authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

packagekit: fix displaying the license of some packages

Properly format the return value of packages where the appstream
metadata doesn't provide license.
parent 2b21f369
......@@ -107,10 +107,10 @@ QJsonArray PackageKitResource::licenses()
fetchDetails();
if (!m_details.license().isEmpty()) {
return {{ m_details.license(), {} }};
return { QJsonObject {{ QStringLiteral("name"), m_details.license() }} };
}
return {};
return { QJsonObject {{ QStringLiteral("name"), {} }} };
}
QList<PackageState> PackageKitResource::addonsInformation()
......
Markdown is supported
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