diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-07-07 23:44:32 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-07-08 10:53:39 +0200 |
commit | 84d798694090725eda9e9df37cbb4ba09b631d3e (patch) | |
tree | c10e2607726ea90235b16b3fad90eb8dcb51652f /support | |
parent | 1b301e8fabf627b0d51387f251f3fb0b453ab587 (diff) |
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>
Diffstat (limited to 'support')
-rwxr-xr-x | support/download/bzr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/download/bzr b/support/download/bzr index 3f52ee9eb..19d837d30 100755 --- a/support/download/bzr +++ b/support/download/bzr @@ -26,7 +26,7 @@ tmp_output="$( mktemp "${output}.XXXXXX" )" # - finally, we atomically rename to the final file ret=1 -if ${BZR} export "${tmp_dl}" "${repo}" -r "${rev}"; then +if ${BZR} export --format=tgz "${tmp_dl}" "${repo}" -r "${rev}"; then if mv "${tmp_dl}" "${tmp_output}"; then mv "${tmp_output}" "${output}" ret=0 |