tazpkg rev 195 2.5.2
Fix build support for upgrade
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 07 08:59:09 2008 +0000 (2008-11-07) |
parents | 18d328f4c230 |
children | 03d2c26e7006 |
files | tazpkg |
line diff
1.1 --- a/tazpkg Fri Oct 31 08:33:51 2008 +0000 1.2 +++ b/tazpkg Fri Nov 07 08:59:09 2008 +0000 1.3 @@ -13,7 +13,7 @@ 1.4 # Pascal Bellard <pascal.bellard@slitaz.org> 1.5 # Eric Joseph-Alexandre <erjo@slitaz.org> 1.6 # 1.7 -VERSION=2.5.1 1.8 +VERSION=2.5.2 1.9 1.10 #################### 1.11 # Script variables # 1.12 @@ -319,9 +319,10 @@ 1.13 # Make the installed package data dir to store 1.14 # the receipt and the files list. 1.15 mkdir -p $ROOT$INSTALLED/$PACKAGE 1.16 - sed -i "/\/$(basename $PACKAGE_FILE)$/d" \ 1.17 + sed -i "/ $(basename $PACKAGE_FILE)$/d" \ 1.18 $ROOT$LOCALSTATE/installed.md5 2> /dev/null 1.19 - md5sum $PACKAGE_FILE >> $ROOT$LOCALSTATE/installed.md5 1.20 + cd $(dirname $PACKAGE_FILE) 1.21 + md5sum $(basename $PACKAGE_FILE) >> $ROOT$LOCALSTATE/installed.md5 1.22 ) 1.23 # Resolve package deps. 1.24 check_for_deps $ROOT 1.25 @@ -1573,7 +1574,7 @@ 1.26 # we just check for egality. 1.27 RELEASE="" 1.28 if [ -f installed.md5 -a -f packages.md5 ]; then 1.29 - current_md5=$(grep -s "/$PACKAGE-$VERSION" installed.md5 | awk '{ print $1 }') 1.30 + current_md5=$(grep -s " $PACKAGE-$VERSION" installed.md5 | awk '{ print $1 }') 1.31 new_md5=$(grep -s " $PACKAGE-$VERSION" packages.md5 | awk '{ print $1 }') 1.32 [ -n "$current_md5" ] && [ -n "$new_md5" ] && 1.33 [ "$current_md5" != "$new_md5" ] && RELEASE=build