2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Don't throw exception when Metalink document is empty(no file
	element).  It is a valid Metalink document anyway.
	* src/MetalinkHelper.cc
	* src/download_helper.cc
This commit is contained in:
Tatsuhiro Tsujikawa 2010-06-01 12:49:47 +00:00
parent 22ada0cf32
commit 5e053b62ab
3 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Don't throw exception when Metalink document is empty(no file
element). It is a valid Metalink document anyway.
* src/MetalinkHelper.cc
* src/download_helper.cc
2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed double memory free when Exception raised from

View File

@ -71,9 +71,6 @@ void MetalinkHelper::query
(std::vector<SharedHandle<MetalinkEntry> >& result,
const SharedHandle<Metalinker>& metalinker, const Option* option)
{
if(metalinker->entries.empty()) {
throw DL_ABORT_EX("No file entry found. Probably, the metalink file is not configured properly or broken.");
}
metalinker->queryEntry(result,
option->get(PREF_METALINK_VERSION),
option->get(PREF_METALINK_LANGUAGE),

View File

@ -329,9 +329,6 @@ void createRequestGroupForMetalink
dw->setString(metalinkData);
Metalink2RequestGroup().generate(result, dw, option);
}
if(result.empty()) {
throw DL_ABORT_EX(MSG_NO_FILES_TO_DOWNLOAD);
}
}
#endif // ENABLE_METALINK