make uscan_download true by default and inverse the logic

This commit is contained in:
Louis-Philippe Véronneau 2019-07-19 13:54:06 -04:00
parent 9c3eb3e4c2
commit 2dd560d329
No known key found for this signature in database
GPG Key ID: 7AEAC4EC6AAA0A97
1 changed files with 2 additions and 3 deletions

View File

@ -32,11 +32,12 @@ if [[ $debversion = *-* ]]; then
git clean -fdx
git reset --hard
git fetch --all
uscan_download="false"
uscan_download="true"
if git checkout -B pristine-tar origin/pristine-tar; then
orig=$(pristine-tar list| head -1)
tar_version=`dpkg -s tar | grep '^Version:'`
if pristine-tar checkout $orig; then
uscan_download="false"
echo "pristine-tar works"
elif [[ $tar_version == "Version: 1.30"* ]]; then
echo "WARNING: tar v1.30 breaks pristine-tar when working with commits created by older versions of tar https://bugs.debian.org/901952, downgrading to tar 1.29b-1.1"
@ -46,8 +47,6 @@ if [[ $debversion = *-* ]]; then
wget -q http://deb.debian.org/debian/pool/main/t/tar/tar_1.29b-1.1_amd64.deb
dpkg -i tar_1.29b-1.1_amd64.deb
rm -f tar_1.29b-1.1_amd64.deb
else
uscan_download="true"
fi
rm -f $orig
buildpackage_options=--git-pristine-tar