tazpkg rev 403

Fix remove with modifiers
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 12 20:49:27 2010 +0100 (2010-12-12)
parents adc832723d07
children 15934c1240f7
files tazpkg
line diff
     1.1 --- a/tazpkg	Sun Dec 12 11:05:29 2010 +0000
     1.2 +++ b/tazpkg	Sun Dec 12 20:49:27 2010 +0100
     1.3 @@ -1932,13 +1932,13 @@
     1.4  			fi
     1.5  			gettext "Removing all files installed..."
     1.6  			if [ -f $ROOT$INSTALLED/$PACKAGE/modifiers ]; then
     1.7 -			    for mod in `cat $ROOT$INSTALLED/$PACKAGE/modifiers`
     1.8 +			    for file in `cat $ROOT$INSTALLED/$PACKAGE/files.list`
     1.9  			    do
    1.10 -				for file in `cat $ROOT$INSTALLED/$PACKAGE/files.list`
    1.11 +				for mod in `cat $ROOT$INSTALLED/$PACKAGE/modifiers`
    1.12  				do
    1.13 -					[ $(grep "^$(echo $file | grepesc)$" $ROOT$INSTALLED/$mod/files.list | wc -l) -gt 1 ] && continue
    1.14 -					remove_with_path $ROOT$file
    1.15 +					[ $(grep "^$(echo $file | grepesc)$" $ROOT$INSTALLED/$mod/files.list | wc -l) -gt 1 ] && continue 2
    1.16  				done
    1.17 +				remove_with_path $ROOT$file
    1.18  			    done
    1.19  			else
    1.20  				for file in `cat $ROOT$INSTALLED/$PACKAGE/files.list`