if package has no pristine-tar branch, fallback to uscan

This commit is contained in:
Hans-Christoph Steiner 2018-06-26 10:50:18 +02:00
parent efb5121a4b
commit b3af073a08
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,10 @@ echo "ensure pristine-tar branch exists and is current"
git clean -fdx
git reset --hard
git fetch --all
git checkout -B pristine-tar origin/pristine-tar
git checkout -B pristine-tar origin/pristine-tar || ( \
echo "no pristine-tar branch, trying uscan";
uscan --verbose --download-current-version --force-download --rename;
)
echo "make $CI_COMMIT_REF_NAME branch current for gbp"
git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
if [ -z "$CI_COMMIT_TAG" ]; then