spk rev 35

spk-add: add installed packges to installed.md5 not packages.md5
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 15 21:11:07 2012 +0200 (2012-05-15)
parents 48522fb4d101
children becb0314c7e1
files spk-add
line diff
     1.1 --- a/spk-add	Tue May 15 21:03:40 2012 +0200
     1.2 +++ b/spk-add	Tue May 15 21:11:07 2012 +0200
     1.3 @@ -9,7 +9,6 @@
     1.4  #. /usr/lib/slitaz/libspk.sh
     1.5  . lib/libspk.sh
     1.6  
     1.7 -
     1.8  tmpdir="/tmp/$RANDOM"
     1.9  
    1.10  #
    1.11 @@ -86,10 +85,10 @@
    1.12  	#touch $package_dir/modifiers
    1.13  	#touch $package_dir/files.list
    1.14  
    1.15 -	# Add package checksum to pkgsmd5
    1.16 -	sed -i "/ $(basename $package_dir)$/d" $pkgsmd5 2> /dev/null
    1.17 +	# Add package checksum to $installed.$SUM
    1.18 +	sed -i "/ $(basename $package_dir)$/d" $installed.$SUM 2> /dev/null
    1.19  	cd $(dirname $package_file) || exit 1
    1.20 -	$CHECKSUM $(basename $package_file) >> $pkgsmd5
    1.21 +	$CHECKSUM $(basename $package_file) >> $installed.$SUM
    1.22  	cd - >/dev/null
    1.23  
    1.24  	# Resolve package deps.