tazpkg rev 235

tazpkgbox: fix icon name for executable (search file)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Feb 25 22:11:17 2009 +0100 (2009-02-25)
parents e553dc92c647
children 3b6cd157c06b
files lib/tazpkgbox/search
line diff
     1.1 --- a/lib/tazpkgbox/search	Wed Feb 25 22:05:01 2009 +0100
     1.2 +++ b/lib/tazpkgbox/search	Wed Feb 25 22:11:17 2009 +0100
     1.3 @@ -18,12 +18,12 @@
     1.4  		version=$(grep -hs "^$pkg " /var/lib/tazpkg/packages.desc \
     1.5  		  /var/lib/tazpkg/undigest/*/packages.desc | awk '{ print $3 }')
     1.6  		if [ -d /var/lib/tazpkg/installed/$pkg ]; then
     1.7 -			if [ -f $file ]; then
     1.8 +			if [ -x $file ]; then
     1.9 +				echo "exec|$pkg|$version|$file"
    1.10 +			elif [ -f $file ]; then
    1.11  				echo "txt|$pkg|$version|$file"
    1.12  			elif [ -d $file ] ; then
    1.13  				echo "folder|$pkg|$version|$file"
    1.14 -			elif [ -x $file ]; then
    1.15 -				echo "exec|$pkg|$version|$file"
    1.16  			else
    1.17  				# Missing installed file.
    1.18  				echo "dialog-warning|$pkg|$version|$file"