# HG changeset patch # User Christophe Lincoln # Date 1306284777 -7200 # Node ID 57cfd34f1c3ab917776022d3c8c6d08b06e4a873 # Parent 39f461c74940944884e72b12546269dc7c03021a cook: use uniq to install bdeps diff -r 39f461c74940 -r 57cfd34f1c3a cook --- a/cook Wed May 25 01:18:41 2011 +0200 +++ b/cook Wed May 25 02:52:57 2011 +0200 @@ -478,7 +478,7 @@ if [ -s "$CACHE/missing.dep" ] && [ "$AUTO_COOK" ]; then gettext -e "Auto cook config is set : AUTO_COOK\n" cp -f $LOGS/$PACKAGE.log $LOGS/$PACKAGE.log.$$ - for i in $(cat $CACHE/missing.dep) + for i in $(uniq $CACHE/missing.dep) do (gettext "Building dep (wok/pkg) :"; echo " $i $vers") | \ tee -a $LOGS/$PACKAGE.log.$$ @@ -501,15 +501,15 @@ # Install local packages. cd $PKGS - for i in $(cat $CACHE/installed.local) + for i in $(uniq $CACHE/installed.local) do - gettext "Installing dep (pkg/local):"; echo " $i $vers" + gettext "Installing dep (pkg/local):"; echo " $i" tazpkg install $i >/dev/null done # Install web or cached packages (if mirror is set to $PKGS we only # use local packages). - for i in $(cat $CACHE/installed.web) + for i in $(uniq $CACHE/installed.web) do gettext "Installing dep (web/cache):"; echo " $i $vers" tazpkg get-install $i >/dev/null