tazpkg rev 433
Fixed remove option to check if packages modifiers files.list exist before greping it.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Mar 04 09:35:31 2011 +0000 (2011-03-04) |
parents | 87e87b5ee7e2 |
children | 2969b58a89c1 f6c402b4d86b |
files | tazpkg |
line diff
1.1 --- a/tazpkg Tue Mar 01 22:24:48 2011 +0100 1.2 +++ b/tazpkg Fri Mar 04 09:35:31 2011 +0000 1.3 @@ -1906,7 +1906,7 @@ 1.4 do 1.5 for mod in `cat $ROOT$INSTALLED/$PACKAGE/modifiers` 1.6 do 1.7 - [ $(grep "^$(echo $file | grepesc)$" $ROOT$INSTALLED/$mod/files.list | wc -l) -gt 1 ] && continue 2 1.8 + [ -f $ROOT$INSTALLED/$mod/files.list ] && [ $(grep "^$(echo $file | grepesc)$" $ROOT$INSTALLED/$mod/files.list | wc -l) -gt 1 ] && continue 2 1.9 done 1.10 remove_with_path $ROOT$file 1.11 done