slitaz-forge rev 462

pkgs: add stable cooker links
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 18 08:44:58 2014 +0000 (2014-02-18)
parents d8e84ed2c30e
children 195da0b28272
files pkgs/search.sh
line diff
     1.1 --- a/pkgs/search.sh	Tue Feb 18 08:38:02 2014 +0000
     1.2 +++ b/pkgs/search.sh	Tue Feb 18 08:44:58 2014 +0000
     1.3 @@ -323,8 +323,8 @@
     1.4  		PACKAGE_HREF="<a href=\"$PACKAGE_URL\">$PACKAGE</a>"
     1.5  		case "$SLITAZ_VERSION" in
     1.6  		cooking) COOKER="<a href=\"http://cook.slitaz.org/cooker.cgi?pkg=$PACKAGE\">$(gettext "Cooker")</a>";;
     1.7 -		undigest) COOKER="<a href=\"http://cook.slitaz.org/undigest/cooker.cgi?pkg=$PACKAGE\">$(gettext "Cooker")</a>";;
     1.8 -		backports) COOKER="<a href=\"http://cook.slitaz.org/backports/cooker.cgi?pkg=$PACKAGE\">$(gettext "Cooker")</a>";;
     1.9 +		stable|undigest|backports)
    1.10 +			COOKER="<a href=\"http://cook.slitaz.org/$SLITAZ_VERSION/cooker.cgi?pkg=$PACKAGE\">$(gettext "Cooker")</a>";;
    1.11  		*)      COOKER="";;
    1.12  		esac
    1.13  		cat << _EOT_
    1.14 @@ -349,8 +349,8 @@
    1.15  		PACKAGE_HREF="<a href=\"$PACKAGE_URL\">$PACKAGE</a>"
    1.16  		case "$SLITAZ_VERSION" in
    1.17  		cooking) COOKER="<a href=\"http://cook.slitaz.org/cooker.cgi?pkg=$PACKAGE\">$(gettext "Cooker")</a>";;
    1.18 -		undigest) COOKER="<a href=\"http://cook.slitaz.org/undigest/cooker.cgi?pkg=$PACKAGE\">$(gettext "Cooker")</a>";;
    1.19 -		backports) COOKER="<a href=\"http://cook.slitaz.org/backports/cooker.cgi?pkg=$PACKAGE\">$(gettext "Cooker")</a>";;
    1.20 +		stable|undigest|backports)
    1.21 +			COOKER="<a href=\"http://cook.slitaz.org/$SLITAZ_VERSION/cooker.cgi?pkg=$PACKAGE\">$(gettext "Cooker")</a>";;
    1.22  		*)      COOKER="";;
    1.23  		esac
    1.24  		cat << _EOT_
    1.25 @@ -564,7 +564,7 @@
    1.26  	case "$SLITAZ_VERSION" in
    1.27  	cooking) [ -n "$VERSION" ] &&
    1.28  		sedit="$sedit -e 's|\\(>VERSION<[^\"]*\"\\)\\([^\"]*\\)|\\1<a class='r-url' target='_blank' href=\"http://cook.slitaz.org/cooker.cgi?pkg=$PACKAGE\">\\2</a>|}'" ;;
    1.29 -	undigest|backports) [ -n "$VERSION" ] &&
    1.30 +	stable|undigest|backports) [ -n "$VERSION" ] &&
    1.31  		sedit="$sedit -e 's|\\(>VERSION<[^\"]*\"\\)\\([^\"]*\\)|\\1<a class='r-url' target='_blank' href=\"http://cook.slitaz.org/$SLITAZ_VERSION/cooker.cgi?pkg=$PACKAGE\">\\2</a>|}'" ;;
    1.32  	esac
    1.33  	#[ -n "$WEB_SITE" ] && sedit="$sedit -e '/WEB_SITE/{s|\\($WEB_SITE\\)|<a class='r-url' target='_blank' href=\"\\1\">\\1</a>|}'"