summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/serverinfo.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-02-12 20:38:17 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-02-12 20:38:17 +0000
commit4c9fc9cb7ed9cb9c0163f81acce5b71ae2dcb29d (patch)
tree72aadddd80a8e689072be8075cf74d8360353632 /rbutil/rbutilqt/base/serverinfo.cpp
parent9a256c96f7fcb60d94bb0c58f499e2f43ce9957a (diff)
downloadrockbox-4c9fc9cb7ed9cb9c0163f81acce5b71ae2dcb29d.tar.gz
rockbox-4c9fc9cb7ed9cb9c0163f81acce5b71ae2dcb29d.zip
Fix problems with platform retrieval.
- handle disabled platforms also for for variant and base groups. - make variant detection more strict to prevent variants that are a substring of other variants to match. Happened e.g. for iriverh10 and iriverh100. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24625 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/serverinfo.cpp')
-rw-r--r--rbutil/rbutilqt/base/serverinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/serverinfo.cpp b/rbutil/rbutilqt/base/serverinfo.cpp
index e581e952ac..0151273338 100644
--- a/rbutil/rbutilqt/base/serverinfo.cpp
+++ b/rbutil/rbutilqt/base/serverinfo.cpp
@@ -54,13 +54,13 @@ void ServerInfo::readBuildInfo(QString file)
54 info.endGroup(); 54 info.endGroup();
55 55
56 // get base platforms, handle variants with platforms in the loop 56 // get base platforms, handle variants with platforms in the loop
57 QStringList platforms = SystemInfo::platforms(SystemInfo::PlatformBase); 57 QStringList platforms = SystemInfo::platforms(SystemInfo::PlatformBaseDisabled);
58 for(int i = 0; i < platforms.size(); i++) 58 for(int i = 0; i < platforms.size(); i++)
59 { 59 {
60 // check if there are rbutil-variants of the current platform and handle 60 // check if there are rbutil-variants of the current platform and handle
61 // them the same time. 61 // them the same time.
62 QStringList variants; 62 QStringList variants;
63 variants = SystemInfo::platforms(SystemInfo::PlatformVariant, platforms.at(i)); 63 variants = SystemInfo::platforms(SystemInfo::PlatformVariantDisabled, platforms.at(i));
64 QVariant release; 64 QVariant release;
65 info.beginGroup("release"); 65 info.beginGroup("release");
66 if(keys.contains(platforms.at(i))) { 66 if(keys.contains(platforms.at(i))) {