cookutils rev 131
cook: use i in cookit deps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 10 15:55:01 2011 +0200 (2011-05-10) |
parents | a7dfa7d95891 |
children | fb53f8b0a0ca |
files | cook |
line diff
1.1 --- a/cook Tue May 10 14:57:27 2011 +0200 1.2 +++ b/cook Tue May 10 15:55:01 2011 +0200 1.3 @@ -403,17 +403,17 @@ 1.4 for dep in $BUILD_DEPENDS 1.5 do 1.6 implicit=${dep%-dev} 1.7 - for pkg in $dep $implicit 1.8 + for i in $dep $implicit 1.9 do 1.10 - if [ ! -f "$INSTALLED/$pkg/receipt" ]; then 1.11 + if [ ! -f "$INSTALLED/$i/receipt" ]; then 1.12 # Try local package first. 1.13 - vers=$(grep ^VERSION $WOK/$pkg/receipt | cut -d '"' -f 2) 1.14 - if [ -f "$PKGS/$pkg-$vers.tazpkg" ]; then 1.15 - gettext "Installing dep (pkg/local):"; echo " $pkg" 1.16 - cd $PKGS && tazpkg install $pkg-$vers.tazpkg >/dev/null 1.17 + vers=$(grep ^VERSION $WOK/$i/receipt | cut -d '"' -f 2) 1.18 + if [ -f "$PKGS/$i-$vers.tazpkg" ]; then 1.19 + gettext "Installing dep (pkg/local):"; echo " $i" 1.20 + cd $PKGS && tazpkg install $i-$vers.tazpkg >/dev/null 1.21 else 1.22 - gettext "Installing dep (web/cache):"; echo " $pkg" 1.23 - tazpkg get-install $pkg >/dev/null 1.24 + gettext "Installing dep (web/cache):"; echo " $i" 1.25 + tazpkg get-install $i >/dev/null 1.26 fi 1.27 fi 1.28 done