[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] [PATCH 21/27] New option --metalink-index to process Meta
From: |
Giuseppe Scrivano |
Subject: |
Re: [Bug-wget] [PATCH 21/27] New option --metalink-index to process Metalink application/metalink4+xml |
Date: |
Thu, 29 Sep 2016 22:31:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hi Matthew,
Matthew White <address@hidden> writes:
> diff --git a/src/init.c b/src/init.c
> index 6729c5a..26f3886 100644
> --- a/src/init.c
> +++ b/src/init.c
> @@ -248,6 +248,7 @@ static const struct {
> { "login", &opt.ftp_user, cmd_string },/* deprecated*/
> { "maxredirect", &opt.max_redirect, cmd_number },
> #ifdef HAVE_METALINK
> + { "metalinkindex", &opt.metalink_index, cmd_number_inf },
> { "metalinkoverhttp", &opt.metalink_over_http, cmd_boolean },
> #endif
> { "method", &opt.method, cmd_string_uppercase },
> @@ -385,6 +386,10 @@ defaults (void)
> bit pattern will be the least of the implementors' worries. */
> xzero (opt);
>
> +#ifdef HAVE_METALINK
> + opt.metalink_index = -1;
> +#endif
> +
> opt.cookies = true;
> opt.verbose = -1;
> opt.ntry = 20;
> diff --git a/src/main.c b/src/main.c
> index ac6ee2c..d48e3b2 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -354,6 +354,7 @@ static struct cmdline_option option_data[] =
> { "rejected-log", 0, OPT_VALUE, "rejectedlog", -1 },
> { "max-redirect", 0, OPT_VALUE, "maxredirect", -1 },
> #ifdef HAVE_METALINK
> + { "metalink-index", 0, OPT_VALUE, "metalinkindex", -1 },
> { "metalink-over-http", 0, OPT_BOOLEAN, "metalinkoverhttp", -1 },
> #endif
> { "method", 0, OPT_VALUE, "method", -1 },
> @@ -714,6 +715,8 @@ Download:\n"),
> N_("\
> --keep-badhash keep files with checksum mismatch (append
> .badhash)\n"),
> N_("\
> + --metalink-index=NUMBER Metalink application/metalink4+xml
> metaurl ordinal NUMBER\n"),
"Metalink" should be lower case.
Giuseppe
- [Bug-wget] [PATCH 15/27] New test: Detect when there are no good Metalink url resources, (continued)
- [Bug-wget] [PATCH 15/27] New test: Detect when there are no good Metalink url resources, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 16/27] Bugfix: Process Metalink/XML url strings containing white spaces and CRLF, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 17/27] Bugfix: Remove surrounding quotes from Metalink/HTTP key's value, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 18/27] New test: Metalink shall not concatenate '/' to an empty directory prefix, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 19/27] New: Parse Metalink/HTTP header for application/metalink4+xml, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 20/27] Bugfix: Prevent sorting when there are less than two elements, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 13/27] New: Metalink/XML and Metalink/HTTP file naming safety rules, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 23/27] Bugfix: Detect when a metalink:file doesn't have any hash, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 22/27] Bugfix: Detect malformed base64 Metalink/HTTP Digest header, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 21/27] New option --metalink-index to process Metalink application/metalink4+xml, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 25/27] Bugfix: Set NULL variable due to --content-disposition to Metalink origin, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 24/27] New: --trust-server-names saves Metalink/HTTP xml files using the "name" field, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 26/27] New: --metalink-over-http Content-Type/Disposition Metalink/XML processing, Matthew White, 2016/09/29
- [Bug-wget] [PATCH 27/27] New: Metalink/XML v3 python class, update tests to use this class, Matthew White, 2016/09/29
- Re: [Bug-wget] [PATCH v2 01/27] new Metalink functionalities, Giuseppe Scrivano, 2016/09/29