tazpkg rev 115

avoid can't open receipt messages
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 03 19:43:52 2008 +0000 (2008-07-03)
parents 58820e6e4e83
children 187f770d30cb
files tazpkg
line diff
     1.1 --- a/tazpkg	Wed Jul 02 19:38:46 2008 +0000
     1.2 +++ b/tazpkg	Thu Jul 03 19:43:52 2008 +0000
     1.3 @@ -181,6 +181,7 @@
     1.4  get_installed_package_pathname()
     1.5  {
     1.6  	for i in $INSTALLED/${1%%-*}*; do
     1.7 +		[ -d $i ] || continue
     1.8  		if [ "$1" = "$(package_fullname_in_dir $i)" ]; then
     1.9  			echo $i
    1.10  			return
    1.11 @@ -536,6 +537,7 @@
    1.12  		zcat $FLAVOR.flavor | cpio -i 2>/dev/null
    1.13  		while read file; do
    1.14  			for pkg in $(ls -d $INSTALLED/${file%%-*}*); do
    1.15 +				[ -d $pkg ] || continue
    1.16  				EXTRAVERSION=""
    1.17  				. $pkg/receipt
    1.18  				[ "$PACKAGE-$VERSION$EXTRAVERSION" = "$file" ] && break