# HG changeset patch # User Christophe Lincoln # Date 1305639342 -7200 # Node ID ecf65a349e76b1354fd0ce015394029b8cd32939 # Parent 18a92a268c5c47671c940e5ec3d3d3ba28a508dd In some case implicit package dont exist diff -r 18a92a268c5c -r ecf65a349e76 cook --- a/cook Tue May 17 11:34:19 2011 +0200 +++ b/cook Tue May 17 15:35:42 2011 +0200 @@ -441,14 +441,18 @@ for i in $dep $implicit do if [ ! -f "$INSTALLED/$i/receipt" ]; then - # Try local package first. - vers=$(grep ^VERSION $WOK/$i/receipt | cut -d '"' -f 2) + # Try local package first. In some case implicit dont exist, ex: + # libboost-dev exist but not libboost, so check if we got vers. + unset vers + vers=$(grep ^VERSION $WOK/$i/receipt 2>/dev/null | cut -d '"' -f 2) if [ -f "$PKGS/$i-$vers.tazpkg" ]; then gettext "Installing dep (pkg/local):"; echo " $i" cd $PKGS && tazpkg install $i-$vers.tazpkg >/dev/null else - gettext "Installing dep (web/cache):"; echo " $i" - tazpkg get-install $i >/dev/null + if [ "$vers" ]; then + gettext "Installing dep (web/cache):"; echo " $i" + tazpkg get-install $i >/dev/null + fi fi fi done