wok-4.x rev 6094

tazbb/sort_cook_list: wanted fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 30 16:34:18 2010 +0200 (2010-08-30)
parents 36764a3b1360
children fdce9fde98b2
files tazbb/stuff/tazbb
line diff
     1.1 --- a/tazbb/stuff/tazbb	Mon Aug 30 15:45:46 2010 +0200
     1.2 +++ b/tazbb/stuff/tazbb	Mon Aug 30 16:34:18 2010 +0200
     1.3 @@ -425,20 +425,15 @@
     1.4  		MISSING=""
     1.5  		for i in $WANTED $BUILD_DEPENDS ; do
     1.6  			# Verify that the dependancy exists and is older
     1.7 -			if [ -f $BUILD_WOK/$i/taz/*/receipt ] &&
     1.8 -			   [ $BUILD_WOK/$pkg/taz/*/receipt \
     1.9 -			     -nt $BUILD_WOK/$i/taz/*/receipt ]; then
    1.10 -				WANTED=""
    1.11 -				. $BUILD_WOK/$i/receipt
    1.12 -				[ -n "$WANTED" ] || continue
    1.13 -				# This dependancy may be cooked 
    1.14 -				# by another package
    1.15 -				[ -f $BUILD_WOK/$WANTED/taz/*/receipt ] &&
    1.16 -				[ $BUILD_WOK/$pkg/taz/*/receipt \
    1.17 -				  -nt $BUILD_WOK/$WANTED/taz/*/receipt ] &&
    1.18 -				continue
    1.19 -				i=$WANTED
    1.20 -			fi
    1.21 +			[ -f $BUILD_WOK/$i/taz/*/receipt ] &&
    1.22 +			[ $BUILD_WOK/$pkg/taz/*/receipt \
    1.23 +			  -nt $BUILD_WOK/$i/taz/*/receipt ] && continue
    1.24 +			WANTED=""
    1.25 +			[ -f $BUILD_WOK/$i/receipt ] &&
    1.26 +			. $BUILD_WOK/$i/receipt
    1.27 +			# This dependancy may be cooked 
    1.28 +			# by another package
    1.29 +			[ -n "$WANTED" ] && i=$WANTED
    1.30  			case " $MISSING " in
    1.31  			*\ $i\ *);;
    1.32  			*) echo -n " $i";;