sup rev 40

Tiny edits
author Paul Issott <paul@slitaz.org>
date Tue Feb 28 22:35:20 2017 +0000 (2017-02-28)
parents d58ceb6b8fe9
children 2b701f1364b2
files libsup.sh server/sup/sup-admin.cgi server/sup/sup.cgi
line diff
     1.1 --- a/libsup.sh	Tue Feb 28 23:19:14 2017 +0100
     1.2 +++ b/libsup.sh	Tue Feb 28 22:35:20 2017 +0000
     1.3 @@ -37,7 +37,7 @@
     1.4  }
     1.5  
     1.6  # Pretty Busybox wget output. Usage: download [name] [url] [dest]
     1.7 -# Download in current dir in $3 is not set
     1.8 +# Download in current dir if $3 is not set
     1.9  download() {
    1.10  	name="$1"
    1.11  	url="$2"
    1.12 @@ -117,7 +117,7 @@
    1.13  		fi
    1.14  	done
    1.15  	
    1.16 -	# Remove existing package files to avois untracked files
    1.17 +	# Remove existing package files to avoid untracked files
    1.18  	if [ -d "$wok/$PACKAGE" ]; then
    1.19  		gettext "Removing existing package files..."
    1.20  		remove_sup "$PACKAGE" >/dev/null; status
     2.1 --- a/server/sup/sup-admin.cgi	Tue Feb 28 23:19:14 2017 +0100
     2.2 +++ b/server/sup/sup-admin.cgi	Tue Feb 28 22:35:20 2017 +0000
     2.3 @@ -1,8 +1,8 @@
     2.4  #!/bin/sh
     2.5  #
     2.6 -# TinyCM/TazBug Plugin - Admin part splitted so less code sourced by
     2.7 +# TinyCM/TazBug Plugin - Admin part split so less code sourced by
     2.8  # TinyCM core spript. echo ENGLISH Only :-). Admin tools: handle SQLite
     2.9 -# packages.md5 for the mirror, clean any unconform, buggy or corrupted 
    2.10 +# packages.md5 for the mirror, clean any unconforming, buggy or corrupted 
    2.11  # packages in wok.
    2.12  #
    2.13  # Copyright (C) 2017 SliTaz GNU/Linux - BSD License
    2.14 @@ -167,7 +167,7 @@
    2.15  				
    2.16  				echo "</pre>" ;;
    2.17  				
    2.18 -			*) echo "<pre>Unknow or command not implemented</pre>" ;;
    2.19 +			*) echo "<pre>Unknown or command not implemented</pre>" ;;
    2.20  			
    2.21  		esac
    2.22  	
     3.1 --- a/server/sup/sup.cgi	Tue Feb 28 23:19:14 2017 +0100
     3.2 +++ b/server/sup/sup.cgi	Tue Feb 28 22:35:20 2017 +0000
     3.3 @@ -5,7 +5,7 @@
     3.4  # This plugin is part of the SPI tools and services. More information
     3.5  # at http://hg.slitaz.org/sup/file/ && http://scn.slitaz.org/?d=en/sup
     3.6  # packages.sql is a SQLite table with all mirrored packages info, just
     3.7 -# for the fun of playing witg SQLite :-)
     3.8 +# for the fun of playing with SQLite :-)
     3.9  #
    3.10  # Copyright (C) 2017 SliTaz GNU/Linux - BSD License
    3.11  # Author: Christophe Lincoln <pankso@slitaz.org>
    3.12 @@ -19,7 +19,7 @@
    3.13  	. paths.conf
    3.14  fi
    3.15  
    3.16 -# Custom paths.conf for easier development /avois commit this file 
    3.17 +# Custom paths.conf for easier development /avoid commiting this file 
    3.18  # with wrong paths like Pankso does! Full paths are needed for upload
    3.19  # to work properly.
    3.20  [ -f "${plugins}/sup/paths.conf" ] && . ${plugins}/sup/paths.conf
    3.21 @@ -194,7 +194,7 @@
    3.22  		# Show MD5sum
    3.23  		echo -e "MD5sum         : $(md5sum $cache/$supfile | cut -d ' ' -f 1)\n"
    3.24  
    3.25 -		# Extract receip: sup cook already check vor empty var. Make
    3.26 +		# Extract receip: sup cook already check for empty var. Make
    3.27  		# sure SCN user name match package MAINTAINER.
    3.28  		gettext "Extracting receip..."
    3.29  		cd ${cache}