curl: Made --metalink option toggle Metalink functionality
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Wed, 20 Jun 2012 15:51:06 +0000 (00:51 +0900)
committerYang Tse <yangsita@gmail.com>
Thu, 21 Jun 2012 01:35:23 +0000 (03:35 +0200)
commit196c8242caa30472564290f1c89e7e19d2f04453
tree9771fcbcda3fe37e2d5c12a3c1f5f4ff645e29e7
parent424bb3587748eb59c0d56613e88ef4511ad4dcbf
curl: Made --metalink option toggle Metalink functionality

In this change, --metalink option no longer takes argument.  If
it is specified, given URIs are processed as Metalink XML file.
If given URIs are remote (e.g., http URI), curl downloads it
first. Regardless URI is local file (e.g., file URI scheme) or
remote, Metalink XML file is not written to local file system and
the received data is fed into Metalink XML parser directly.  This
means with --metalink option, filename related options like -O
and -o are ignored.

Usage examples:

$ curl --metalink http://example.org/foo.metalink

This will download foo.metalink and parse it and then download
the URI described there.

$ curl --metalink file://foo.metalink

This will parse local file foo.metalink and then download the URI
described there.
src/tool_cfgable.h
src/tool_getparam.c
src/tool_help.c
src/tool_metalink.c
src/tool_metalink.h
src/tool_operate.c
src/tool_sdecls.h