Commit Graph

2736 Commits (089563cb2adfdd8f1a8afeea21178a5cd9c9a028)

Author SHA1 Message Date
Tatsuhiro Tsujikawa 089563cb2a Updated po templates. 2010-12-05 15:54:38 +09:00
Tatsuhiro Tsujikawa 6363da9cea Updated NEWS for 1.10.7 release. 2010-12-05 15:16:15 +09:00
Tatsuhiro Tsujikawa bc798ae4e6 Use Exception::getErrorCode() in main() instead of error_code::UNKNOWN_ERROR
unconditionally.
2010-12-05 15:13:32 +09:00
Tatsuhiro Tsujikawa f5efdd9413 Updated doc for --on-download-stop. 2010-12-04 22:43:07 +09:00
Tatsuhiro Tsujikawa 0271ec0352 Updated usage of --on-download-* options. 2010-12-04 22:42:24 +09:00
Tatsuhiro Tsujikawa 934c185e79 Updated Event Hook. 2010-12-04 21:52:10 +09:00
Tatsuhiro Tsujikawa 4747c3a2da Added Hook Event subsection and described about COMMAND specified in
--on-download-* options. Made all --on-download-* option refer this
subsection.
2010-12-04 21:48:46 +09:00
Tatsuhiro Tsujikawa c1a130fdf5 Updated doc for --save-session. 2010-12-04 21:15:23 +09:00
Tatsuhiro Tsujikawa 044e6df7ac Updated man page for --on-download-start. Mentioned about 2 new
arguments.
2010-12-04 21:11:09 +09:00
Tatsuhiro Tsujikawa adcfffeccb Fixed arithmetic exception when completedLength is 0. 2010-12-04 20:56:52 +09:00
Tatsuhiro Tsujikawa f3e89651a8 Return true if completedLength is 0. 2010-12-04 20:56:14 +09:00
Tatsuhiro Tsujikawa c5ef9dadbd Pass the number of requested files as 2nd argument to the command specified in
--on-download-* hook.

As a consequence, first filename is passed as 3rd argument.
2010-12-04 19:00:48 +09:00
Tatsuhiro Tsujikawa 0cdfc3d104 Call RequestGroupMan::removeStoppedGroup() in
DownloadEngine::onEndOfRun() to process RequestGroup objects currently
in-progress.

With this change, --on-download-stop/error/complete hooks are properly
called for in-progress downloads when Ctrl-C is pressed.
2010-12-04 18:24:38 +09:00
Tatsuhiro Tsujikawa 567b424907 Pass first filename as 2nd argument to command specified by
--on-download-* option.
2010-12-04 18:14:27 +09:00
Tatsuhiro Tsujikawa c03ab007a3 Throw exception when unrecognized URI, bad Metalink or bad .torrent
file are given in command-line and exits with status non-zero.
2010-12-04 17:19:31 +09:00
Tatsuhiro Tsujikawa c81dcd80ea Removed 3rd argument auxUris of createBtMagnetRequestGroup(). 2010-12-04 16:47:09 +09:00
Tatsuhiro Tsujikawa f9a6697352 Fixed compile error without ssl library. 2010-12-04 00:37:42 +09:00
Tatsuhiro Tsujikawa 8f39257fd5 Added aria2c bash_completion.
make_bash_completion.py generates aria2c bash_completion using `aria2c
--help=#all'.
2010-12-03 23:03:59 +09:00
Tatsuhiro Tsujikawa 0a2b1660fa Removed DownloadContext::dir_. Use PREF_DIR value instead. 2010-12-03 13:08:22 +09:00
Tatsuhiro Tsujikawa 479f71efaf Bump up version number to 1.10.7 2010-12-03 11:41:16 +09:00
Tatsuhiro Tsujikawa 7a3faa625b Check a2x, asciidoc presence and only build documents when they are
available.
2010-12-02 23:55:52 +09:00
Tatsuhiro Tsujikawa 816be74e61 Generate man pages, its HTML version and README.html by make.
Removed those generated files and scripts to generate them from repository. Added aria2c.1.asciidoc
to dist_doc_DATA.
2010-12-02 23:24:04 +09:00
Tatsuhiro Tsujikawa 3ee6784b76 Made `make distcheck' pass.
We added 2 macros A2_TEST_DIR and A2_TEST_OUT_DIR to pass tests in
`make distcheck`.  A2_TEST_DIR refers to test directory.  All output
files by unit tests are now created under A2_TEST_OUT_DIR directory.
2010-12-02 22:52:35 +09:00
Tatsuhiro Tsujikawa 7ac1f17d56 Added missing error_code.h to Makefile.am 2010-12-01 23:06:39 +09:00
Tatsuhiro Tsujikawa 85d0a9b740 Updated EXIT STATUS section. 2010-12-01 21:58:12 +09:00
Tatsuhiro Tsujikawa f0f4f8f703 Added more error code values.
I have not set error code for all exception invocation.
In this change, I set error code where error likely occurs.
2010-12-01 21:26:58 +09:00
Tatsuhiro Tsujikawa 6bc215fcec Add groupToAdd to requestGroups_ even if exception is thrown in
createInitialCommand().

This makes groupToAdd be processed by removeStoppedGroup() and
--on-download-error hook is properly triggered.  Now
--on-download-start is also triggered for groupToAdd even if exception
is thrown in createInitialCommand().
2010-11-29 21:06:39 +09:00
Tatsuhiro Tsujikawa 378ba26ed3 Updated doc 2010-11-29 21:06:00 +09:00
Tatsuhiro Tsujikawa a0139e3e08 Call RequestGroup::setLastError in
PeerInteractionCommand::onFailure().

Added const Exception& argument to virtual
AbstractCommand::onFailure().
2010-11-29 01:37:32 +09:00
Tatsuhiro Tsujikawa d5b6ec8621 Call RequestGroup::setLastError when exception is caught while
creating initial commands.
2010-11-29 01:32:25 +09:00
Tatsuhiro Tsujikawa f5a9448cf1 Moved setLastError call before if(req_) {... 2010-11-29 01:30:24 +09:00
Tatsuhiro Tsujikawa ce6eb592da Added Exception ctor which takes both errNum and errorCode.
Also added DlAbortEx ctor which has same signature with new Exception
dtor.  Added DL_ABORT_EX3 macro to use added ctor.
2010-11-28 22:30:06 +09:00
Tatsuhiro Tsujikawa e8f3592314 Removed include of cerrno from Exception.h 2010-11-28 21:42:03 +09:00
Tatsuhiro Tsujikawa 476ba70a9f Moved errorCode_ from RecoverableException to Exception and added errorCode to
stackTrace.

Also changed errno to errNum in stackTrace.
2010-11-28 21:36:01 +09:00
Tatsuhiro Tsujikawa 45fde1adaf Cleaned up Exception constructors.
Removed Exception(const char*, int, const Exception&) ctor.  Also
removed FatalException() copy ctor.
2010-11-28 21:03:11 +09:00
Tatsuhiro Tsujikawa 50122f0ab3 Renamed Exception::errno_ as Exception::errNum_. 2010-11-28 19:06:56 +09:00
Tatsuhiro Tsujikawa ecbc05012c Added additional error_code::Values(9 through 14). 2010-11-28 17:29:32 +09:00
Tatsuhiro Tsujikawa d316a00ade Replaced RequestGroup::lastUriResult_ with
RequestGroup::lastErrorCode_.
2010-11-28 17:00:30 +09:00
Tatsuhiro Tsujikawa 947967fc63 Renamed DownloadErrorCode.h as error_code.h. Renamed
downloaderrorcode::Value as error_code::Value.
2010-11-28 16:52:02 +09:00
Tatsuhiro Tsujikawa 13e3cf2573 Updated doc. 2010-11-28 01:58:15 +09:00
Tatsuhiro Tsujikawa 98a7f3a378 Updated doc. 2010-11-28 01:14:13 +09:00
Tatsuhiro Tsujikawa c4e853ed15 Removed auto generated files in po. 2010-11-28 00:47:53 +09:00
Tatsuhiro Tsujikawa e2122d82c9 Added empty ChangeLog.
Without ChangeLog, autoreconf complains.
2010-11-28 00:38:58 +09:00
Tatsuhiro Tsujikawa 68726e0838 Moved ChangeLog to ChangeLog.old and added notice that we no longer
update this fie.
2010-11-28 00:23:20 +09:00
Tatsuhiro Tsujikawa f4e008f886 Moved include of gettext.h to the outside of #ifdef ENABLE_NLS since
gettext.h has it inside itself.
2010-11-28 00:05:56 +09:00
Tatsuhiro Tsujikawa ce41bbbb2e Removed intl 2010-11-27 23:50:10 +09:00
Tatsuhiro Tsujikawa 5aae203d32 Removed config.h.in 2010-11-27 23:35:46 +09:00
Tatsuhiro Tsujikawa e39dd96171 Removed autogenerated files by automake/autoconf.
To generate these files, run 'autoreconf -i'.

Since libgnutls.m4 is no longer distributed, we removed
AM_PATH_LIBGNUTLS from configure.ac.
2010-11-27 23:31:17 +09:00
Tatsuhiro Tsujikawa ec95a9d424 Added README because automake requires it. Added README.asciidoc to
Makefile.am.
2010-11-27 22:55:14 +09:00
Tatsuhiro Tsujikawa c6c3ee4daa Updated doc 2010-11-27 21:59:38 +09:00