cookutils rev 343

cook: eval version (sqlite-dev need that)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 19 11:50:10 2012 +0100 (2012-03-19)
parents 4f9d23e13883
children 14458aa844e2
files cook
line diff
     1.1 --- a/cook	Sun Mar 18 00:57:01 2012 +0000
     1.2 +++ b/cook	Mon Mar 19 11:50:10 2012 +0100
     1.3 @@ -472,7 +472,7 @@
     1.4  				# Try local package first. In some cases implicit doesn't exist, ex:
     1.5  				# libboost-dev exists but not libboost, so check if we got vers.
     1.6  				unset vers
     1.7 -				vers=$(grep ^VERSION= $WOK/$i/receipt 2>/dev/null | cut -d '"' -f 2)
     1.8 +				vers=$(. $WOK/$i/receipt 2>/dev/null ; echo $VERSION)
     1.9  				if [ -f "$PKGS/$i-$vers.tazpkg" ]; then
    1.10  					echo $i-$vers.tazpkg >> $CACHE/installed.local
    1.11  				else