tazwok rev 248

Fix an error into check_for_tarball function
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Feb 12 04:19:25 2011 +0100 (2011-02-12)
parents 9cc115298e1a
children a4534c67d98c
files tazwok
line diff
     1.1 --- a/tazwok	Sat Feb 12 04:01:24 2011 +0100
     1.2 +++ b/tazwok	Sat Feb 12 04:19:25 2011 +0100
     1.3 @@ -454,14 +454,14 @@
     1.4  				fi
     1.5  			fi
     1.6  			if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ] && \
     1.7 -				[ ! -f "$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.lzma" ]; then
     1.8 +				[ ! -f "$SOURCES_REPOSITORY/${SOURCE:-PACKAGE}-$VERSION.tar.lzma" ]; then
     1.9  				report step "Download failed, try with mirror copy (again)... "
    1.10  				file=$(basename $WGET_URL)
    1.11  				download http://mirror.slitaz.org/sources/packages/${file:0:1}/$file
    1.12  			fi
    1.13  
    1.14  			# Exit if download failed to avoid errors.
    1.15 -			if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ]; then
    1.16 +			if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ] && [ ! -f "$SOURCES_REPOSITORY/${SOURCE:-PACKAGE}-$VERSION.tar.lzma" ; then
    1.17  				echo -e "\nDownload failed, exiting. Please check WGET_URL variable.\n" >&2
    1.18  				report end-step
    1.19  				return 1