mirror of https://github.com/aria2/aria2
2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed useless pathJoin * src/MetalinkParserController.ccpull/1/head
parent
460ee92644
commit
0bc298df00
|
@ -1,3 +1,8 @@
|
||||||
|
2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Removed useless pathJoin
|
||||||
|
* src/MetalinkParserController.cc
|
||||||
|
|
||||||
2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Fixed the bug that name attribute of file element in Metalink file
|
Fixed the bug that name attribute of file element in Metalink file
|
||||||
|
|
|
@ -85,14 +85,10 @@ void MetalinkParserController::setFileNameOfEntry(const std::string& filename)
|
||||||
if(_tEntry.isNull()) {
|
if(_tEntry.isNull()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
std::vector<std::string> elements;
|
|
||||||
util::split(filename, std::back_inserter(elements), "/");
|
|
||||||
std::string path = util::joinPath(elements.begin(), elements.end());
|
|
||||||
|
|
||||||
if(_tEntry->file.isNull()) {
|
if(_tEntry->file.isNull()) {
|
||||||
_tEntry->file.reset(new FileEntry(util::escapePath(path), 0, 0));
|
_tEntry->file.reset(new FileEntry(util::escapePath(filename), 0, 0));
|
||||||
} else {
|
} else {
|
||||||
_tEntry->file->setPath(util::escapePath(path));
|
_tEntry->file->setPath(util::escapePath(filename));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue