From 674bbbaf832b83042b906c564b9240cd894c2583 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 12 Mar 2012 22:16:14 +0100 Subject: Fix false positive in version detection. Some git revisions are falsely detected as release version. Extend test and fix the wrong regexp. Corrects font download trying to get the wrong file for some current builds. Change-Id: Ia779896c927385ec0d7ba68ee3d953f3c6e4494c --- rbutil/rbutilqt/base/rockboxinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rbutil/rbutilqt/base/rockboxinfo.cpp') diff --git a/rbutil/rbutilqt/base/rockboxinfo.cpp b/rbutil/rbutilqt/base/rockboxinfo.cpp index 9d8aba65f9..f9c0ea5b23 100644 --- a/rbutil/rbutilqt/base/rockboxinfo.cpp +++ b/rbutil/rbutilqt/base/rockboxinfo.cpp @@ -35,7 +35,7 @@ RockboxInfo::RockboxInfo(QString mountpoint, QString fname) // read file contents QRegExp hash("^Version:\\s+(r?)([0-9a-fM]+)"); QRegExp version("^Version:\\s+(\\S.*)"); - QRegExp release("^Version:\\s+([0-9\\.]+)"); + QRegExp release("^Version:\\s+([0-9\\.]+)\\s*$"); QRegExp target("^Target:\\s+(\\S.*)"); QRegExp features("^Features:\\s+(\\S.*)"); QRegExp targetid("^Target id:\\s+(\\S.*)"); -- cgit v1.2.3