tazwok rev 547
Fix: remove_previous_package() doesn't triger false failure report anymore.
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Dec 09 20:49:42 2011 +0100 (2011-12-09) |
parents | 8822f9e826ae |
children | 713a5580cf9a |
files | tazwok |
line diff
1.1 --- a/tazwok Fri Dec 09 20:46:47 2011 +0100 1.2 +++ b/tazwok Fri Dec 09 20:49:42 2011 +0100 1.3 @@ -438,8 +438,7 @@ 1.4 1.5 remove_previous_package() 1.6 { 1.7 - [ "$prev_VERSION" ] || return 1.8 - if [ "$VERSION$EXTRAVERSION" != "$prev_VERSION" ]; then 1.9 + if [ "$prev_VERSION" ] && [ "$VERSION$EXTRAVERSION" != "$prev_VERSION" ]; then 1.10 rm -f $1/$PACKAGE-$prev_VERSION.tazpkg 1.11 fi 1.12 return 0