cookutils rev 693

cooker: fix arch-db
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 10 17:56:59 2014 +0200 (2014-10-10)
parents 9ea4ecbbf993
children 5bcc3be62d13
files cooker
line diff
     1.1 --- a/cooker	Fri Oct 10 15:30:05 2014 +0200
     1.2 +++ b/cooker	Fri Oct 10 17:56:59 2014 +0200
     1.3 @@ -209,9 +209,9 @@
     1.4  	echo "Creating $ARCH packages DB..."
     1.5  	for pkg in *
     1.6  	do
     1.7 -		if fgrep -q 'HOST_ARCH' $wok/$pkg/receipt; then
     1.8 -			. $wok/$pkg/receipt
     1.9 -			#: ${HOST_ARCH=i486}
    1.10 +		HOST_ARCH=
    1.11 +		. $wok/$pkg/receipt
    1.12 +		if [ -n "$HOST_ARCH" ]; then
    1.13  			if $(echo "$HOST_ARCH" | egrep -q "$ARCH|any"); then
    1.14  				count=$(($count + 1))
    1.15  				echo "Adding: $pkg"