1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Tomer Shalev 2010-04-10 06:55:21 +00:00
parent 853572e946
commit 8402ffa377

View file

@ -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);