tazpkg diff tazpkg @ rev 662

Tiny edits
author Paul Issott <paul@slitaz.org>
date Sat Feb 22 17:35:36 2014 +0000 (2014-02-22)
parents 17bc7a85aab5
children edae96a252ac
line diff
     1.1 --- a/tazpkg	Tue Feb 18 20:38:04 2014 +0100
     1.2 +++ b/tazpkg	Sat Feb 22 17:35:36 2014 +0000
     1.3 @@ -2,7 +2,7 @@
     1.4  #
     1.5  # TazPKG - Tiny autonomous zone packages manager.
     1.6  #
     1.7 -# This is a lightwight packages manager for *.tazpkg files written in SHell
     1.8 +# This is a lightweight packages manager for *.tazpkg files written in SHell
     1.9  # script. It works well with Busybox ash shell and bash. TazPKG lets you
    1.10  # list, install, remove, download or get information about a package. You
    1.11  # can use 'tazpkg usage' to get a list of commands with short descriptions.
    1.12 @@ -180,7 +180,7 @@
    1.13  EOT
    1.14  }
    1.15  
    1.16 -# Check if dir exist
    1.17 +# Check if dir exists
    1.18  check_dir()
    1.19  {
    1.20  	if ! [ -d "$1" ]; then
    1.21 @@ -342,7 +342,7 @@
    1.22  			# format 'alternative:newname'
    1.23  			# if alternative is installed then substitute newname
    1.24  			if [ -f $2$INSTALLED/${i%:*}/receipt ]; then
    1.25 -				# substitute package dependancy
    1.26 +				# substitute package dependency
    1.27  				echo ${i#*:}
    1.28  				return
    1.29  			fi
    1.30 @@ -369,7 +369,7 @@
    1.31  			# format 'alternative:newname'
    1.32  			# if alternative is installed then substitute newname
    1.33  			if [ -f $2$INSTALLED/${i%:*}/receipt ]; then
    1.34 -				# substitute package dependancy
    1.35 +				# substitute package dependency
    1.36  				echo ${i#*:}
    1.37  				return
    1.38  			fi
    1.39 @@ -401,7 +401,7 @@
    1.40  		[ "$pkg" ] && get_cache_dir && break
    1.41  	done
    1.42  	if [ -z "$pkg" ]; then
    1.43 -		# Check for vitual package
    1.44 +		# Check for virtual package
    1.45  		local equiv
    1.46  		equiv=$(virtual_pkg $1)
    1.47  		if [ "$equiv" != "$1" ]; then
    1.48 @@ -546,7 +546,7 @@
    1.49  		if grep -q ^pre_depends $TMP_DIR/receipt; then
    1.50  			pre_depends $ROOT
    1.51  		fi
    1.52 -		# Keep modifers and file list on upgrade
    1.53 +		# Keep modifiers and file list on upgrade
    1.54  		cp $ROOT$INSTALLED/$PACKAGE/modifiers \
    1.55  		   $ROOT$INSTALLED/$PACKAGE/files.list $TMP_DIR 2> /dev/null
    1.56  		rm -rf $ROOT$INSTALLED/$PACKAGE 2> /dev/null
    1.57 @@ -728,7 +728,7 @@
    1.58  	exit 1
    1.59  }
    1.60  
    1.61 -# This function installs a package form a get script in the rootfs.
    1.62 +# This function installs a package from a get script in the rootfs.
    1.63  install_package_from_get_script()
    1.64  {
    1.65  	SCRIPT="$1"
    1.66 @@ -1992,7 +1992,7 @@
    1.67  		# Install a set of packages from a flavor and purge other ones.
    1.68  		install_flavor $2 --purge ;;
    1.69  	set-release)
    1.70 -		# Change curent release and upgrade packages.
    1.71 +		# Change current release and upgrade packages.
    1.72  		RELEASE=$2
    1.73  		if [ -z "$RELEASE" ]; then
    1.74  			newline
    1.75 @@ -2515,7 +2515,7 @@
    1.76  				pkg_sum=$repo/packages.$SUM
    1.77  
    1.78  				if ! fgrep -q "$md5  $PACKAGE-" $pkg_sum; then
    1.79 -					# Jump to next repository in priority if pkg doesn't exists
    1.80 +					# Jump to next repository in priority if pkg doesn't exist
    1.81  					# in this one.
    1.82  					grep -q ^$PACKAGE- $pkg_list || continue
    1.83  
    1.84 @@ -2581,7 +2581,7 @@
    1.85  						echo 'y' | tazpkg get-install $pkg --forced
    1.86  					done
    1.87  					# List is generated each time and must be cleaned so
    1.88 -					# tazpkg-notify don't find upgrade anymore.
    1.89 +					# tazpkg-notify doesn't find upgrades anymore.
    1.90  					rm $UP_LIST && touch $UP_LIST ;;
    1.91  				*)
    1.92  					gettext "Leaving without any upgrades installed."; echo