tazpkg rev 271

Add tazpkg upgrade package-name
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 03 11:59:57 2009 +0200 (2009-06-03)
parents c9eae696a57d
children 757764404261
files tazpkg
line diff
     1.1 --- a/tazpkg	Tue May 26 19:41:51 2009 +0200
     1.2 +++ b/tazpkg	Wed Jun 03 11:59:57 2009 +0200
     1.3 @@ -108,7 +108,7 @@
     1.4    recharge         Recharge your packages.list from the mirror.
     1.5    repack           Create a package archive from an installed package.
     1.6    repack-config    Create a package archive with configuration files.
     1.7 -  upgrade          Upgrade all installed and listed packages on the mirror.
     1.8 +  upgrade          Upgrade one or all installed and listed packages on the mirror.
     1.9    block|unblock    Block an installed package version or unblock it for upgrade.
    1.10    get              Download a package into the current directory.
    1.11    get-install      Download and install a package from the mirror.
    1.12 @@ -1841,7 +1841,12 @@
    1.13  		echo ""
    1.14  		# Some packages must be installed first
    1.15  		FIRST_CLASS_PACKAGE=" glibc-base slitaz-base-files slitaz-boot-scripts "
    1.16 -		for pkg in $INSTALLED/*
    1.17 +		if [ -n "$PACKAGE_FILE" -a -d "$INSTALLED/$PACKAGE_FILE" ]; then
    1.18 +			ALL=$INSTALLED/$PACKAGE_FILE
    1.19 +		else
    1.20 +			ALL="$(ls -d $INSTALLED/*)"
    1.21 +		fi
    1.22 +		for pkg in $ALL
    1.23  		do 
    1.24  			[ -f $pkg/receipt ] || continue
    1.25  			EXTRAVERSION=""