spk diff lib/libspk.sh @ rev 131

Tiny edits
author Paul Issott <paul@slitaz.org>
date Mon Mar 03 16:06:46 2014 +0000 (2014-03-03)
parents ee5a53b16e51
children db947fd832be
line diff
     1.1 --- a/lib/libspk.sh	Sat Dec 21 22:15:24 2013 +0100
     1.2 +++ b/lib/libspk.sh	Mon Mar 03 16:06:46 2014 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  #!/bin/sh
     1.5  #
     1.6  # Libspk - The Spk base function and internal variables used by almost all
     1.7 -# spk-tools. Read the README before adding or modifing any code in spk!
     1.8 +# spk-tools. Read the README before adding or modifying any code in spk!
     1.9  #
    1.10  # Copyright (C) SliTaz GNU/Linux - BSD License
    1.11  # Author: See AUTHORS files
    1.12 @@ -231,13 +231,13 @@
    1.13  	cd - > /dev/null
    1.14  }
    1.15  
    1.16 -# Unser var set by mirrored_pkg
    1.17 +# Unset var set by mirrored_pkg
    1.18  unset_mirrored() {
    1.19  	unset mirrored mirror db pwd
    1.20  }
    1.21  
    1.22  # Return the full package name, search in all packages.desc and break when
    1.23 -# first occurance is found: Usage: full_package pkgname
    1.24 +# first occurrence is found: Usage: full_package pkgname
    1.25  full_package() {
    1.26  	for desc in $(find $extradb $pkgsdesc -name packages.desc); do
    1.27  		local line="$(grep "^$1 |" $desc)"
    1.28 @@ -268,7 +268,7 @@
    1.29  			# format 'alternative:newname'
    1.30  			# if alternative is installed then substitute newname
    1.31  			if is_package_installed ${i%:*}; then
    1.32 -				# substitute package dependancy
    1.33 +				# substitute package dependency
    1.34  				echo ${i#*:}
    1.35  				return
    1.36  			fi