cookutils rev 173
In some case implicit package dont exist
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 17 15:35:42 2011 +0200 (2011-05-17) |
parents | 18a92a268c5c |
children | 2021474725ef |
files | cook |
line diff
1.1 --- a/cook Tue May 17 11:34:19 2011 +0200 1.2 +++ b/cook Tue May 17 15:35:42 2011 +0200 1.3 @@ -441,14 +441,18 @@ 1.4 for i in $dep $implicit 1.5 do 1.6 if [ ! -f "$INSTALLED/$i/receipt" ]; then 1.7 - # Try local package first. 1.8 - vers=$(grep ^VERSION $WOK/$i/receipt | cut -d '"' -f 2) 1.9 + # Try local package first. In some case implicit dont exist, ex: 1.10 + # libboost-dev exist but not libboost, so check if we got vers. 1.11 + unset vers 1.12 + vers=$(grep ^VERSION $WOK/$i/receipt 2>/dev/null | cut -d '"' -f 2) 1.13 if [ -f "$PKGS/$i-$vers.tazpkg" ]; then 1.14 gettext "Installing dep (pkg/local):"; echo " $i" 1.15 cd $PKGS && tazpkg install $i-$vers.tazpkg >/dev/null 1.16 else 1.17 - gettext "Installing dep (web/cache):"; echo " $i" 1.18 - tazpkg get-install $i >/dev/null 1.19 + if [ "$vers" ]; then 1.20 + gettext "Installing dep (web/cache):"; echo " $i" 1.21 + tazpkg get-install $i >/dev/null 1.22 + fi 1.23 fi 1.24 fi 1.25 done