summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2010-04-10 06:55:21 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2010-04-10 06:55:21 +0000
commit8402ffa37777228c79e5f6280acfa15ee2b25ab7 (patch)
tree6f678193064c8108c1880d5cd80ea4790102d11c /rbutil/rbutilqt/rbutilqt.cpp
parent853572e946c1366d194229352d9f66c540212d3a (diff)
downloadrockbox-8402ffa37777228c79e5f6280acfa15ee2b25ab7.tar.gz
rockbox-8402ffa37777228c79e5f6280acfa15ee2b25ab7.tar.bz2
rockbox-8402ffa37777228c79e5f6280acfa15ee2b25ab7.zip
FS#11193 - rbutil: HTTP 404 error when downloading zipped version of the manual
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25561 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 6754e8f933..135e5100d4 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -1071,7 +1071,7 @@ void RbUtilQt::downloadManual(void)
manual = "rockbox-"
+ SystemInfo::value(SystemInfo::CurBuildserverModel).toString();
- QString date = ServerInfo::value(ServerInfo::DailyDate).toString();
+ QDate date = QDate::fromString(ServerInfo::value(ServerInfo::DailyDate).toString(),Qt::ISODate);
QString manualurl;
QString target;
@@ -1081,7 +1081,7 @@ void RbUtilQt::downloadManual(void)
section = "Manual (PDF)";
}
else {
- target = "/" + manual + "-" + date + "-html.zip";
+ target = "/" + manual + "-" + date.toString("yyyyMMdd") + "-html.zip";
section = "Manual (HTML)";
}
manualurl = SystemInfo::value(SystemInfo::ManualUrl).toString() + "/" + target;
@@ -1094,7 +1094,7 @@ void RbUtilQt::downloadManual(void)
if(!RbSettings::value(RbSettings::CacheDisabled).toBool())
installer->setCache(true);
installer->setLogSection(section);
- installer->setLogVersion(date);
+ installer->setLogVersion(ServerInfo::value(ServerInfo::DailyDate).toString());
installer->setUrl(manualurl);
installer->setUnzip(false);
installer->setTarget(target);