bug-wget
[Top][All Lists]
Advanced

[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



reply via email to

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