summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/serverinfo.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-22 16:39:56 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-22 18:30:01 +0100
commitf598ef9c27fa51b2d3b809f2937104b8bca271b2 (patch)
treed893a95439edaeb7fd9178ea87de3614f896c052 /rbutil/rbutilqt/base/serverinfo.cpp
parent0ea8f074ed5bc615f5a7cc495582f525210b87d5 (diff)
downloadrockbox-f598ef9c27.tar.gz
rockbox-f598ef9c27.tar.bz2
rockbox-f598ef9c27.zip
rbutil: Add support for installing daily builds.
Change-Id: If2bb23adcbd4a441f18846515c609118da8c5b5e
Diffstat (limited to 'rbutil/rbutilqt/base/serverinfo.cpp')
-rw-r--r--rbutil/rbutilqt/base/serverinfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/serverinfo.cpp b/rbutil/rbutilqt/base/serverinfo.cpp
index 8b6707540e..9fa3402828 100644
--- a/rbutil/rbutilqt/base/serverinfo.cpp
+++ b/rbutil/rbutilqt/base/serverinfo.cpp
@@ -41,6 +41,8 @@ const static struct {
{ ServerInfo::CurReleaseUrl, "release/:platform:", "" },
{ ServerInfo::RelCandidateVersion, "release-candidate/:platform:", "" },
{ ServerInfo::RelCandidateUrl, "release-candidate/:platform:", "" },
+ { ServerInfo::DailyVersion, "daily/:platform:", "" },
+ { ServerInfo::DailyUrl, "daily/:platform:", "" },
{ ServerInfo::CurStatus, "status/:platform:", "-1" },
{ ServerInfo::BleedingRevision, "bleeding/rev", "" },
{ ServerInfo::BleedingDate, "bleeding/timestamp", "" },
@@ -83,10 +85,12 @@ QVariant ServerInfo::platformValue(enum ServerInfos info, QString platform)
switch(info) {
case CurReleaseVersion:
case RelCandidateVersion:
+ case DailyVersion:
value = value.toStringList().at(0);
break;
case CurReleaseUrl:
case RelCandidateUrl:
+ case DailyUrl:
{
QString version = value.toStringList().at(0);
if(value.toStringList().size() > 1)