rbutil: Handle the new Retired target status.
It's considerd stable, but does not have dev builds any more So don't display download options to get RC or dev builds. Change-Id: I68ed6adc2dd72d54464d3ff8d8e8df28088f8020
This commit is contained in:
parent
30fb53d47f
commit
66d7c21cde
2 changed files with 8 additions and 3 deletions
|
@ -117,6 +117,9 @@ void ServerInfo::readBuildInfo(QString file)
|
|||
QString status = tr("Unknown");
|
||||
switch(info.value(platforms.at(i)).toInt())
|
||||
{
|
||||
case 0:
|
||||
status = tr("Stable (Retired)");
|
||||
break;
|
||||
case 1:
|
||||
status = tr("Unusable");
|
||||
break;
|
||||
|
@ -219,4 +222,3 @@ QVariant ServerInfo::platformValue(QString platform, enum ServerInfos info)
|
|||
LOG_INFO() << "GET:" << s << serverInfos.value(s, d).toString();
|
||||
return serverInfos.value(s, d);
|
||||
}
|
||||
|
||||
|
|
|
@ -92,8 +92,11 @@ void SelectiveInstallWidget::updateVersion(void)
|
|||
// re-populate all version items
|
||||
m_versions.clear();
|
||||
m_versions.insert("release", ServerInfo::value(ServerInfo::CurReleaseVersion).toString());
|
||||
m_versions.insert("development", ServerInfo::value(ServerInfo::BleedingRevision).toString());
|
||||
m_versions.insert("rc", ServerInfo::value(ServerInfo::RelCandidateVersion).toString());
|
||||
// Don't populate RC or development selections if target has been retired.
|
||||
if (ServerInfo::value(ServerInfo::CurStatus) != tr("Stable (Retired)")) {
|
||||
m_versions.insert("development", ServerInfo::value(ServerInfo::BleedingRevision).toString());
|
||||
m_versions.insert("rc", ServerInfo::value(ServerInfo::RelCandidateVersion).toString());
|
||||
}
|
||||
|
||||
ui.selectedVersion->clear();
|
||||
if(!m_versions["release"].isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue