spk diff spk-up @ rev 129

Added tag 1.1 for changeset 218ee0ee6502
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jan 05 02:38:29 2014 +0100 (2014-01-05)
parents 0df5690de5fd
children 365a7811faf7
line diff
     1.1 --- a/spk-up	Fri Jun 01 23:34:10 2012 +0100
     1.2 +++ b/spk-up	Sun Jan 05 02:38:29 2014 +0100
     1.3 @@ -50,7 +50,7 @@
     1.4  	newline
     1.5  	boldify $(gettext "Updating packages lists")
     1.6  	separator
     1.7 -	check="$extradb/*/mirror $PKGS_DB/mirror"
     1.8 +	local check="$extradb/*/mirror $PKGS_DB/mirror"
     1.9  	if [ "$mirror" ]; then
    1.10  		check=$extradb/$mirror/mirror
    1.11  		[ "$mirror" == "main" ] && check=$PKGS_DB/mirror
    1.12 @@ -133,7 +133,7 @@
    1.13  # Check if we have an upgrade for a package
    1.14  check_pkgup() {
    1.15  	unset_receipt
    1.16 -	. $pkg/receipt
    1.17 +	source_receipt $pkg/receipt
    1.18  	localdb=$extradb/local
    1.19  	sum=$(fgrep "  $PACKAGE-${VERSION}$EXTRAVERSION.tazpkg" \
    1.20  		$installed.$SUM | awk '{print $1}')
    1.21 @@ -196,10 +196,10 @@
    1.22  			system=no
    1.23  			check_root
    1.24  			[ "$count" == 0 ] && up_headers
    1.25 -			if [ -f "$installed/$pkg/receipt" ]; then
    1.26 +			if is_package_installed $pkg; then
    1.27  				count=$(($count +1))
    1.28  				cd $installed
    1.29 -				. $pkg/receipt
    1.30 +				source_receipt $pkg/receipt
    1.31  				check=$(check_pkgup)
    1.32  				if [ "$check" != "" ]; then
    1.33  					echo "$check"