support/download: fix the bzr helper
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 7 Jul 2014 21:44:32 +0000 (23:44 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 8 Jul 2014 08:53:39 +0000 (10:53 +0200)
commit84d798694090725eda9e9df37cbb4ba09b631d3e
treec10e2607726ea90235b16b3fad90eb8dcb51652f
parent1b301e8fabf627b0d51387f251f3fb0b453ab587
support/download: fix the bzr helper

bzr uses the name of the extension of the output file to known what
output format to use: tar, tgz, tar.bz2... If no extension is
recognised, bzr will output to a directory.

Since we use 'mktemp .XXXXXX' to generate temporary files, it obviously
never ends with a recognised extension. Thus, bzr expects the output to
be a directory, and fails since it is a file.

Fix that by forcing the output format.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/download/bzr