wok-6.x diff tazpkg-web/stuff/search.cgi @ rev 7412

Add libsdl-pango to libsdl-pango-dev depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Nov 27 21:19:49 2010 +0000 (2010-11-27)
parents dd3e14a6278d
children cf639851d4be
line diff
     1.1 --- a/tazpkg-web/stuff/search.cgi	Mon Aug 16 12:43:11 2010 +0200
     1.2 +++ b/tazpkg-web/stuff/search.cgi	Sat Nov 27 21:19:49 2010 +0000
     1.3 @@ -18,7 +18,11 @@
     1.4  	VERBOSE=0
     1.5  	for i in $(echo $REQUEST_URI | sed 's/[?&]/ /g'); do
     1.6  		SLITAZ_VERSION=cooking
     1.7 -		case "$i" in
     1.8 +		case "$(echo $i | tr [A-Z] [a-z])" in
     1.9 +		search=*)
    1.10 +			SEARCH=${i#*=};;
    1.11 +		object=*)
    1.12 +			OBJECT=${i#*=};;
    1.13  		verbose=*)
    1.14  			VERBOSE=${i#*=};;
    1.15  		lang=*)
    1.16 @@ -44,18 +48,17 @@
    1.17  		depends=*)
    1.18  			SEARCH=${i#*=}
    1.19  			OBJECT=Depends;;
    1.20 -		BuildDepends=*)
    1.21 +		builddepends=*)
    1.22  			SEARCH=${i#*=}
    1.23  			OBJECT=BuildDepends;;
    1.24 -		FileOverlap=*)
    1.25 +		fileoverlap=*)
    1.26  			SEARCH=${i#*=}
    1.27  			OBJECT=FileOverlap;;
    1.28  		version=s*|version=3*)
    1.29  			SLITAZ_VERSION=stable;;
    1.30 -		version=2*)
    1.31 -			SLITAZ_VERSION=2.0;;
    1.32 -		version=1*)
    1.33 -			SLITAZ_VERSION=1.0;;
    1.34 +		version=[1-9]*)
    1.35 +			i=${version%%.*}
    1.36 +			SLITAZ_VERSION=${i#*=}.0;;
    1.37  		esac
    1.38  	done
    1.39  	[ -n "$SEARCH" ] && REQUEST_METHOD="POST"