tazpkg rev 219 2.6.1

Search equivalent_pkg in undigest too
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 14 20:44:14 2008 +0000 (2008-12-14)
parents 03f0a3dfddfc
children 46fc45c51699
files tazpkg
line diff
     1.1 --- a/tazpkg	Sat Dec 06 22:29:47 2008 +0100
     1.2 +++ b/tazpkg	Sun Dec 14 20:44:14 2008 +0000
     1.3 @@ -457,7 +457,8 @@
     1.4  # get package from packages.equiv
     1.5  equivalent_pkg()
     1.6  {
     1.7 -	for i in $(grep -s "^$1=" $2$LOCALSTATE/packages.equiv | sed "s/^$1=//"); do
     1.8 +	for i in $(grep -hs "^$1=" $LOCALSTATE/packages.equiv \
     1.9 +		   $LOCALSTATE/undigest/*/packages.equiv | sed "s/^$1=//"); do
    1.10  		if echo $i | grep -q : ; then
    1.11  			# format 'alternative:newname'
    1.12  			# if alternative is installed then substitute newname