Browse Source

2010-09-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Disabled --dry-run in multi-file download for now.
	* src/RequestGroup.cc
Tatsuhiro Tsujikawa 15 years ago
parent
commit
2c3411f709
2 changed files with 10 additions and 1 deletions
  1. 5 0
      ChangeLog
  2. 5 1
      src/RequestGroup.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2010-09-15  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Disabled --dry-run in multi-file download for now.
+	* src/RequestGroup.cc
+
 2010-09-15  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Fixed the bug that a file gets overwritten if -V is given and no

+ 5 - 1
src/RequestGroup.cc

@@ -497,7 +497,11 @@ void RequestGroup::createInitialCommand
       }
     }
   } else {
-    // TODO dry-run mode?
+    // TODO --dry-run is not supported for multifile download for now.
+    if(option_->getAsBool(PREF_DRY_RUN)) {
+      throw DOWNLOAD_FAILURE_EXCEPTION
+        ("--dry-run in multi-file download is not supported yet.");
+    }
     // TODO file size is known in this context?
 
     // In this context, multiple FileEntry objects are in