Skip to content

Commit

Permalink
json: Silverblue moved from subvariant to variant, handle that
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBriza committed May 2, 2019
1 parent ea98609 commit 8303529
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/releasemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ void ReleaseManager::onStringDownloaded(const QString &text) {
QJsonObject obj = i.toObject();
QString arch = obj["arch"].toString().toLower();
QString url = obj["link"].toString();
QString category = obj["variant"].toString().toLower();
QString release = obj["subvariant"].toString().toLower();
QString versionWithStatus = obj["version"].toString().toLower();
QString sha256 = obj["sha256"].toString();
Expand All @@ -226,7 +227,7 @@ void ReleaseManager::onStringDownloaded(const QString &text) {
continue;

// silverblue actually belongs under workstation
if (release == "silverblue") {
if (category == "silverblue" || release == "silverblue") {
release = "workstation";
type = "atomic";
}
Expand Down

0 comments on commit 8303529

Please sign in to comment.