c48d45e342
This drastically simplifies the bzr helper, as it no longer has to deal with atomically saving the downloaded archive. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
21 lines
456 B
Bash
Executable File
21 lines
456 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# We want to catch any unexpected failure, and exit immediately
|
|
set -e
|
|
|
|
# Download helper for bzr, to be called from the download wrapper script
|
|
# Expected arguments:
|
|
# $1: output file
|
|
# $2: bzr repo
|
|
# $3: bzr revision
|
|
# $4: basename
|
|
# And this environment:
|
|
# BZR : the bzr command to call
|
|
|
|
output="${1}"
|
|
repo="${2}"
|
|
rev="${3}"
|
|
basename="${4}"
|
|
|
|
${BZR} export --root="${basename}/" --format=tgz "${output}" "${repo}" -r "${rev}"
|