cookutils rev 273

cooker: WANTED is BUILD_DEPENDS too
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 07 10:38:57 2011 +0100 (2011-11-07)
parents d08b14d49e15
children a3dfd81ec91f
files cooker
line diff
     1.1 --- a/cooker	Mon Nov 07 10:09:21 2011 +0100
     1.2 +++ b/cooker	Mon Nov 07 10:38:57 2011 +0100
     1.3 @@ -106,11 +106,11 @@
     1.4  	rm -f $cookorder
     1.5  	for pkg in $(cat $cooklist)
     1.6  	do
     1.7 -		unset BUILD_DEPENDS
     1.8 +		unset WANTED BUILD_DEPENDS
     1.9  		. $wok/$pkg/receipt
    1.10  		# The :: is for web interface color.
    1.11 -		[ "$BUILD_DEPENDS" ] && echo "$pkg :: $BUILD_DEPENDS"
    1.12 -		for dep in $BUILD_DEPENDS
    1.13 +		[ "$WANTED$BUILD_DEPENDS" ] && echo "$pkg :: $WANTED $BUILD_DEPENDS"
    1.14 +		for dep in $WANTED $BUILD_DEPENDS
    1.15  		do
    1.16  			if grep -q "^$dep$" $cooklist; then
    1.17  				if ! grep -q "^$dep$" $cookorder; then
    1.18 @@ -283,8 +283,8 @@
    1.19  		separator && cd $wok
    1.20  		for rev in *
    1.21  		do
    1.22 -			unset DEPENDS BUILD_DEPENDS && . $wok/$rev/receipt
    1.23 -			if echo "$DEPENDS $BUILD_DEPENDS" | fgrep -q $pkg; then
    1.24 +			unset WANTED DEPENDS BUILD_DEPENDS && . $wok/$rev/receipt
    1.25 +			if echo "$WANTED $DEPENDS $BUILD_DEPENDS" | fgrep -q $pkg; then
    1.26  				echo "$rev" | tee -a $cooklist
    1.27  			fi
    1.28  		done && separator