From 34036e58aff1deaafddf7736054bc65d163dcdb4 Mon Sep 17 00:00:00 2001
From: Tatsuhiro Tsujikawa
Date: Fri, 16 Jul 2010 15:00:35 +0000
Subject: [PATCH] 2010-07-16 Tatsuhiro Tsujikawa
Added --on-bt-download-complete=COMMAND option. For BitTorrent, a
command specified in --on-download-complete is called when
download completes and seeding is over. On the other hand, this
option set the command to be executed when download completes but
before seeding.
* doc/aria2c.1.txt
* src/DefaultPieceStorage.cc
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* src/util.cc
* src/util.h
---
ChangeLog | 16 ++++++++++++++++
doc/aria2c.1 | 10 ++++++++++
doc/aria2c.1.html | 14 +++++++++++++-
doc/aria2c.1.txt | 8 ++++++++
src/DefaultPieceStorage.cc | 13 +++++++++++++
src/OptionHandlerFactory.cc | 10 ++++++++++
src/prefs.cc | 2 ++
src/prefs.h | 2 ++
src/usage_text.h | 8 ++++++++
src/util.cc | 6 ++++++
src/util.h | 3 +++
11 files changed, 91 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 42fa7bf0..97e04154 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2010-07-16 Tatsuhiro Tsujikawa
+
+ Added --on-bt-download-complete=COMMAND option. For BitTorrent, a
+ command specified in --on-download-complete is called when
+ download completes and seeding is over. On the other hand, this
+ option set the command to be executed when download completes but
+ before seeding.
+ * doc/aria2c.1.txt
+ * src/DefaultPieceStorage.cc
+ * src/OptionHandlerFactory.cc
+ * src/prefs.cc
+ * src/prefs.h
+ * src/usage_text.h
+ * src/util.cc
+ * src/util.h
+
2010-07-16 Tatsuhiro Tsujikawa
Updated doc of --split option.
diff --git a/doc/aria2c.1 b/doc/aria2c.1
index bc2ff052..e7df3964 100644
--- a/doc/aria2c.1
+++ b/doc/aria2c.1
@@ -1249,6 +1249,16 @@ or
\fIdebug\fR
.RE
.PP
+\fB\-\-on\-bt\-download\-complete\fR=COMMAND
+.RS 4
+For BitTorrent, a command specified in
+\fB\-\-on\-download\-complete\fR
+is called when download completes and seeding is over\&. On the other hand, this option set the command to be executed when download completes but before seeding\&. See
+\fB\-\-on\-download\-start\fR
+option for the requirement of COMMAND\&. Possible Values:
+\fI/path/to/command\fR
+.RE
+.PP
\fB\-\-on\-download\-complete\fR=COMMAND
.RS 4
Set the command to be executed when download completes\&. See
diff --git a/doc/aria2c.1.html b/doc/aria2c.1.html
index fc87c352..d6bdb414 100644
--- a/doc/aria2c.1.html
+++ b/doc/aria2c.1.html
@@ -2077,6 +2077,18 @@ name.
+--on-bt-download-complete=COMMAND
+
+
+
+ For BitTorrent, a command specified in --on-download-complete is
+ called when download completes and seeding is over. On the other
+ hand, this option set the command to be executed when download
+ completes but before seeding. See --on-download-start option for
+ the requirement of COMMAND. Possible Values: /path/to/command
+
+
+
--on-download-complete=COMMAND
@@ -4230,7 +4242,7 @@ files in the program, then also delete it here.