From 8b27671e58d6c071fb231d4ad8ddecb28255f86e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 29 Oct 2007 12:43:45 +0000 Subject: 2007-10-29 Tatsuhiro Tsujikawa Use File::renameTo() * src/DefaultBtProgressInfoFile.cc Added --no-file-allocation-limit command-line option. * src/version_usage.cc * src/option_processing.cc * src/OptionHandlerFactory.cc * src/RequestGroup.{h, cc} * src/BtCheckIntegrityEntry.cc * src/StreamCheckIntegrityEntry.cc * src/prefs.h * doc/aria2c.1.txt * doc/aria2c.1 Now prealloc is the default value for --file-allocation option. * src/version_usage.cc * src/option_processing.cc * doc/aria2c.1.txt * doc/aria2c.1 Don't URL-encode user-agent. * src/HttpRequest.cc Updated translations * po/LINGUAS: Added nl for Dutch translation. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl. * po/POTFILES.in: Updated. --- src/StreamCheckIntegrityEntry.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/StreamCheckIntegrityEntry.cc') diff --git a/src/StreamCheckIntegrityEntry.cc b/src/StreamCheckIntegrityEntry.cc index f2e607ce..5ebb535c 100644 --- a/src/StreamCheckIntegrityEntry.cc +++ b/src/StreamCheckIntegrityEntry.cc @@ -54,7 +54,7 @@ StreamCheckIntegrityEntry::~StreamCheckIntegrityEntry() {} Commands StreamCheckIntegrityEntry::prepareForNextAction(DownloadEngine* e) { Commands commands; - if(_requestGroup->isFileAllocationEnabled() && !_requestGroup->getPieceStorage()->getDiskAdaptor()->fileAllocationIterator()->finished()) { + if(_requestGroup->needsFileAllocation()) { FileAllocationEntryHandle entry = new StreamFileAllocationEntry(_currentRequest, _requestGroup, popNextCommand()); -- cgit