Always create directory hierarchy for Metalink.
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Mon, 14 May 2012 13:46:15 +0000 (22:46 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 26 May 2012 21:11:40 +0000 (23:11 +0200)
commitc3ef63f16743202eae8b0a1207130a5ba65b8ec2
tree47a0ee3b70ee7cd64c0d474521b28e47af76f8e9
parent94eb1328969b796e4ecce3a113fc6ba24c167254
Always create directory hierarchy for Metalink.

Filenames contained in Metalink file can include directory information.
Filenames are unique in Metalink file, taking into account the directory
information. So we need to create the directory hierarchy.

Curl has --create-dirs option, but we create directory hierarchy for
Metalink downloads regardless of the option value.

This patch also put metalink int variable outside of HAVE_LIBMETALINK
guard. This reduces the number of #ifdefs.
src/tool_operate.c