slitaz-forge diff pkgs/mirror-search.sh @ rev 711

Update pangolin
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 01 18:26:56 2020 +0100 (2 months ago)
parents 7442bb8579e9
children
line diff
     1.1 --- a/pkgs/mirror-search.sh	Thu Jun 26 13:41:04 2014 +0300
     1.2 +++ b/pkgs/mirror-search.sh	Wed Jan 01 18:26:56 2020 +0100
     1.3 @@ -123,7 +123,7 @@
     1.4  for i in $(echo $QUERY_STRING | sed 's/[?&]/ /g'); do
     1.5  #	SLITAZ_VERSION=cooking
     1.6  	case "$(echo $i | tr [A-Z] [a-z])" in
     1.7 -		query=*|search=*)		[ ${i#*=} == Search ] || SEARCH=${i#*=};;
     1.8 +		query=*|search=*)		[ ${i#*=} = Search ] || SEARCH=${i#*=};;
     1.9  		object=*)				OBJECT=${i#*=};;
    1.10  		verbose=*)				VERBOSE=${i#*=};;
    1.11  		lang=*)					LANG=${i#*=};;
    1.12 @@ -150,7 +150,7 @@
    1.13  done
    1.14  [ -z "$SLITAZ_VERSION" ] && SLITAZ_VERSION=cooking
    1.15  #[ -n "$SEARCH" ] && REQUEST_METHOD="POST"
    1.16 -#[ "$SEARCH" == "." ] && SEARCH=
    1.17 +#[ "$SEARCH" = "." ] && SEARCH=
    1.18  
    1.19  
    1.20  # Content negotiation for Gettext
    1.21 @@ -945,7 +945,7 @@
    1.22  		. $WOK/$pkg/receipt
    1.23  		DESC=" <a href=\"?object=Desc&query=$pkg&lang=$lang&version=$SLITAZ_VERSION&submit=go\">$(gettext description)</a>"
    1.24  		[ -f $WOK/$pkg/description.txt ] || DESC=""
    1.25 -		[ "$CATEGORY" == "$SEARCH" ] && cat << _EOT_
    1.26 +		[ "$CATEGORY" = "$SEARCH" ] && cat << _EOT_
    1.27  $(package_entry)$DESC
    1.28  _EOT_
    1.29  	done
    1.30 @@ -964,7 +964,7 @@
    1.31  		. $WOK/$pkg/receipt
    1.32  		DESC=" <a href=\"?object=Desc&query=$pkg&lang=$lang&version=$SLITAZ_VERSION&submit=go\">$(gettext description)</a>"
    1.33  		[ -f $WOK/$pkg/description.txt ] || DESC=""
    1.34 -		[ "$MAINTAINER" == "$SEARCH" ] && cat << _EOT_
    1.35 +		[ "$MAINTAINER" = "$SEARCH" ] && cat << _EOT_
    1.36  $(package_entry)$DESC
    1.37  _EOT_
    1.38  	done