[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] [PATCH v5 0/4] Make wget capable of starting downloads from a
From: |
Yousong Zhou |
Subject: |
[Bug-wget] [PATCH v5 0/4] Make wget capable of starting downloads from a specified position. |
Date: |
Fri, 14 Feb 2014 10:06:45 +0800 |
This series tries to add an option `--start-pos' for specifying starting
position of a HTTP or FTP download. Also inclued are 2 fixes for the test
infrastructure and 3 test cases for the new option.
With the new option, a user-specified zero-based offset value can be specified,
instead of deriving it from existing file which is what --continue currently
does. When both this option and --continue are both specified which does not
make much sense, wget will warn and proceed as if --continue was not there.
Signed-off-by: Yousong Zhou <address@hidden>
---
v4 -> v5
- Reworked the description in doc with kind suggestions from Tim
Ruehsen.
- Disable --start-pos when WARC options are used.
- When --start-pos and --continue are both specified, emit a warning,
use --start-pos and disable --continue, then proceed.
- Add 2 fixes for the test infrastructure.
- Add 3 test cases for the new option.
v3 -> v4
In doc/wget.texi and wget usage output, explicitly note that
--start-pos is zero-based.
v2 -> v3
Fix a typo and add description text for the new option into the usage
output. Thank Darshit Shah <address@hidden> for the suggestions.
v1 -> v2
It was kindly pointed out by Darshit Shah <address@hidden> that
server support for resuming download is required, so adding this into
doc/wget.texi.
Yousong Zhou (4):
Make wget capable of starting downloads from a specified position.
Tests: fix TYPE and RETR command handling.
Tests: exclude existing files from the check of unexpected downloads.
Tests: Add test cases for option --start-pos.
doc/ChangeLog | 4 ++
doc/wget.texi | 16 ++++++++++
src/ChangeLog | 7 ++++
src/ftp.c | 2 +
src/http.c | 2 +
src/init.c | 4 ++
src/main.c | 18 +++++++++--
src/options.h | 1 +
tests/ChangeLog | 16 ++++++++++
tests/FTPServer.pm | 12 ++++---
tests/Test--start-pos--continue.px | 57 ++++++++++++++++++++++++++++++++++++
tests/Test--start-pos.px | 46 +++++++++++++++++++++++++++++
tests/Test-ftp--start-pos.px | 42 ++++++++++++++++++++++++++
tests/WgetTest.pm.in | 5 ++-
tests/run-px | 3 ++
15 files changed, 226 insertions(+), 9 deletions(-)
create mode 100755 tests/Test--start-pos--continue.px
create mode 100755 tests/Test--start-pos.px
create mode 100755 tests/Test-ftp--start-pos.px
--
1.7.2.5
- [Bug-wget] [PATCH v5 0/4] Make wget capable of starting downloads from a specified position.,
Yousong Zhou <=