From a405d0238e39a06f8d2165b9737919e0b0177d03 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 8 Aug 2007 16:01:58 +0000 Subject: [PATCH] Fixed the bug that a remote metalink is not processed even if '-o foo.metalink' is specified. * src/MetalinkRequestInfo.cc --- ChangeLog | 4 ++++ TODO | 1 - src/MetalinkRequestInfo.cc | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4e45677f..67701258 100644 --- a/ChangeLog +++ b/ChangeLog @@ -68,6 +68,10 @@ Applied Ross's patch * src/a2netcompat.h * src/main.cc + + Fixed the bug that prevents a remote metalink from not being processed + even if '-o foo.metalink' is specified. + * src/MetalinkRequestInfo.cc 2007-08-02 Tatsuhiro Tsujikawa diff --git a/TODO b/TODO index 003d0624..2f6fbbc5 100644 --- a/TODO +++ b/TODO @@ -39,4 +39,3 @@ * used globally -> common.h * replace threw with thrown -* fix the bug that causes a remote metalink fails. \ No newline at end of file diff --git a/src/MetalinkRequestInfo.cc b/src/MetalinkRequestInfo.cc index 6da65841..e1e8805c 100644 --- a/src/MetalinkRequestInfo.cc +++ b/src/MetalinkRequestInfo.cc @@ -163,6 +163,8 @@ RequestInfos MetalinkRequestInfo::execute() { #endif // ENABLE_MESSAGE_DIGEST groups.push_front(rg); } + // clear PREF_OUT, because PREF_OUT is a filename for metalink file itself. + op->put(PREF_OUT, ""); MultiUrlRequestInfoHandle reqInfo = new MultiUrlRequestInfo(groups, op); nextReqInfos.push_back(reqInfo); } catch(RecoverableException* ex) {