tazpkg rev 109

tazpkg: speedup download package completion check
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 01 08:35:12 2008 +0000 (2008-07-01)
parents ce6a89b18b1f
children 575042ef5e19
files tazpkg
line diff
     1.1 --- a/tazpkg	Tue Jul 01 07:53:50 2008 +0000
     1.2 +++ b/tazpkg	Tue Jul 01 08:35:12 2008 +0000
     1.3 @@ -1379,8 +1379,7 @@
     1.4  		if [ -f "$PACKAGE.tazpkg" ]; then
     1.5  			echo "$PACKAGE already in the cache : $CACHE_DIR"
     1.6  			# check package download was finished
     1.7 -			hexdump -C $PACKAGE.tazpkg | tail | hexdump -R | \
     1.8 -			grep -q 00000000TRAILER || {
     1.9 +			tail -c 2k $PACKAGE.tazpkg | grep -q 00000000TRAILER || {
    1.10  				echo "Continue $PACKAGE download"
    1.11  				download $PACKAGE.tazpkg
    1.12  			}