cookutils rev 224

cook: use uniq to install bdeps
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 25 02:52:57 2011 +0200 (2011-05-25)
parents 39f461c74940
children 0d02e63da3c2
files cook
line diff
     1.1 --- a/cook	Wed May 25 01:18:41 2011 +0200
     1.2 +++ b/cook	Wed May 25 02:52:57 2011 +0200
     1.3 @@ -478,7 +478,7 @@
     1.4  	if [ -s "$CACHE/missing.dep" ] && [ "$AUTO_COOK" ]; then
     1.5  		gettext -e "Auto cook config is set   : AUTO_COOK\n"
     1.6  		cp -f $LOGS/$PACKAGE.log $LOGS/$PACKAGE.log.$$
     1.7 -		for i in $(cat $CACHE/missing.dep)
     1.8 +		for i in $(uniq $CACHE/missing.dep)
     1.9  		do
    1.10  			(gettext "Building dep (wok/pkg)    :"; echo " $i $vers") | \
    1.11  				tee -a $LOGS/$PACKAGE.log.$$
    1.12 @@ -501,15 +501,15 @@
    1.13  	
    1.14  	# Install local packages.
    1.15  	cd $PKGS
    1.16 -	for i in $(cat $CACHE/installed.local)
    1.17 +	for i in $(uniq $CACHE/installed.local)
    1.18  	do
    1.19 -		gettext "Installing dep (pkg/local):"; echo " $i $vers"
    1.20 +		gettext "Installing dep (pkg/local):"; echo " $i"
    1.21  		tazpkg install $i >/dev/null
    1.22  	done
    1.23  	
    1.24  	# Install web or cached packages (if mirror is set to $PKGS we only
    1.25  	# use local packages).
    1.26 -	for i in $(cat $CACHE/installed.web)
    1.27 +	for i in $(uniq $CACHE/installed.web)
    1.28  	do
    1.29  		gettext "Installing dep (web/cache):"; echo " $i $vers"
    1.30  		tazpkg get-install $i >/dev/null