mirror of https://github.com/aria2/aria2
Ignore --out option supplied in command-line if -i is used.
You can still use out option in the text file specified in -i.pull/2/head
parent
bf42505b7b
commit
4c1c38a33f
|
@ -517,6 +517,7 @@ void createRequestGroupForUriList
|
||||||
}
|
}
|
||||||
|
|
||||||
SharedHandle<Option> requestOption(new Option(*option.get()));
|
SharedHandle<Option> requestOption(new Option(*option.get()));
|
||||||
|
requestOption->remove(PREF_OUT);
|
||||||
for(std::set<std::string>::const_iterator i =
|
for(std::set<std::string>::const_iterator i =
|
||||||
listRequestOptions().begin(), eoi = listRequestOptions().end();
|
listRequestOptions().begin(), eoi = listRequestOptions().end();
|
||||||
i != eoi; ++i) {
|
i != eoi; ++i) {
|
||||||
|
|
|
@ -302,8 +302,8 @@ void DownloadHelperTest::testCreateRequestGroupForUriList()
|
||||||
|
|
||||||
SharedHandle<RequestGroup> fileISOGroup = result[1];
|
SharedHandle<RequestGroup> fileISOGroup = result[1];
|
||||||
SharedHandle<DownloadContext> fileISOCtx = fileISOGroup->getDownloadContext();
|
SharedHandle<DownloadContext> fileISOCtx = fileISOGroup->getDownloadContext();
|
||||||
CPPUNIT_ASSERT_EQUAL(std::string("/tmp/file.out"),
|
// PREF_OUT in option_ must be ignored.
|
||||||
fileISOCtx->getBasePath());
|
CPPUNIT_ASSERT_EQUAL(std::string(), fileISOCtx->getBasePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_BITTORRENT
|
#ifdef ENABLE_BITTORRENT
|
||||||
|
|
Loading…
Reference in New Issue