diff options
author | Yang Tse <yangsita@gmail.com> | 2012-06-08 14:21:29 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-06-08 14:27:45 +0200 |
commit | eeeba1496cbcac7aaffdd9355270d61582e98d3a (patch) | |
tree | 63aad82c2a402ad3341834ada88100a28cc95be7 /src/tool_operate.c | |
parent | 186b101deb1e1b46b4f2797e8aed9ce6c774fcae (diff) |
metalink: build fixes and adjustments II
Additionally, make hash checking ability mandatory in order to allow metalink
support in curl.
A command line option could be introduced to skip hash checking at runtime,
but the ability to check hashes should always be built-in when providing
metalink support.
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 2da92ca44..d01e38326 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -65,6 +65,7 @@ #include "tool_homedir.h" #include "tool_libinfo.h" #include "tool_main.h" +#include "tool_metalink.h" #include "tool_msgs.h" #include "tool_operate.h" #include "tool_operhlp.h" @@ -1577,14 +1578,12 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[]) fprintf(config->errors, "Could not parse Metalink file.\n"); } } -# ifdef METALINK_HASH_CHECK else if(metalink && res == CURLE_OK && !metalink_next_res) { int rv = metalink_check_hash(config, mlfile, outs.filename); if(rv == 0) { metalink_next_res = 1; } } -# endif /* METALINK_HASH_CHECK */ #endif /* USE_METALINK */ /* No more business with this output struct */ |