[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [PATCH v6 0/5] Make wget capable of starting downloads from a

From: Yousong Zhou
Subject: [Bug-wget] [PATCH v6 0/5] Make wget capable of starting downloads from a specified position.
Date: Wed, 19 Mar 2014 23:42:03 +0800

This series tries to add an option `--start-pos' for specifying starting
position of a HTTP or FTP download.  Also inclued are 3 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>
v5 -> v6

        - Fix a typo in version 5 of the patch for fixing TYPE and RETR
          commands handling in FTP test server.
        - Fix test for --https-only option by adding feature constraint on
          HTTPS support.

v4 -> v5

        - Reworked the description in doc with kind suggestions from Tim
        - 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

Yousong Zhou (5):
  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.
  Tests: Add constraint on https for --https-only test.

 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                    |   21 +++++++++++++
 tests/FTPServer.pm                 |   12 ++++---
 tests/Test--httpsonly-r.px         |    2 +
 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 ++
 16 files changed, 233 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]