Skip to content

Commit

Permalink
fixups for #181 (#185)
Browse files Browse the repository at this point in the history
fixup! parse new names:

Co-authored-by: @nephros (nephros <nemo@pgxperiiia10>)
  • Loading branch information
nephros authored Apr 3, 2023
1 parent 56924cb commit 6384399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chumpackage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void ChumPackage::setDetails(const PackageKit::Details &v) {
m_developer_name = json.value("DeveloperName").toString();
m_developer_name_from_spec = !m_developer_name.isEmpty();
m_packager_name = json.value("PackagedBy").toString();
if (m_packager_name.isEmpty()
if (m_packager_name.isEmpty())
m_packager_name = json.value("PackagerName").toString(); // spec v0 legacy
m_packager_name_from_spec = !m_packager_name.isEmpty();
m_categories = json.value("Categories").toVariant().toStringList();
Expand All @@ -215,7 +215,7 @@ void ChumPackage::setDetails(const PackageKit::Details &v) {

m_screenshots = json.value("Screenshots").toVariant().toStringList();

if (json.value("Url").isEmpty() { // spec v0 legacy
if (json.value("Url").isUndefined()) { // spec v0 legacy
m_url = json.value("Links").toObject().value("Homepage").toString(m_url);
m_url_forum = json.value("Links").toObject().value("Help").toString();
m_url_issues = json.value("Links").toObject().value("Bugtracker").toString();
Expand Down

0 comments on commit 6384399

Please sign in to comment.