tazwok rev 260

check_for_tarball(): Don't keep TARBALL if it can't be handle by tazwok (in most case it's download error/killed).
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Feb 12 22:46:22 2011 +0100 (2011-02-12)
parents e8d822c062a1
children abf8ffc00051
files tazwok
line diff
     1.1 --- a/tazwok	Sat Feb 12 22:42:38 2011 +0100
     1.2 +++ b/tazwok	Sat Feb 12 22:46:22 2011 +0100
     1.3 @@ -521,7 +521,7 @@
     1.4  				mkdir $tmp_src/${SOURCE:-$PACKAGE}-$VERSION
     1.5  				cp $SOURCES_REPOSITORY/$TARBALL $tmp_src/${SOURCE:-$PACKAGE}-$VERSION
     1.6  			;;
     1.7 -		esac || return 1
     1.8 +		esac || { rm -f $TABRALL && return 1; }
     1.9  		
    1.10  		# Check if uncompressed tarball is in a root dir or not.
    1.11  		if [ "$(ls -A $tmp_src | wc -l)" -gt 1 ]; then