tazpkg diff pkgs.cgi @ rev 692

Add extra category (get-scripts common to any SliTaz version)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 19 17:15:05 2014 +0100 (2014-11-19)
parents 6db0b10cd201
children 1d7f3c9ce99c
line diff
     1.1 --- a/pkgs.cgi	Wed Apr 16 19:33:08 2014 +0100
     1.2 +++ b/pkgs.cgi	Wed Nov 19 17:15:05 2014 +0100
     1.3 @@ -171,6 +171,7 @@
     1.4  	<a class="active_meta" href="$SCRIPT_NAME?cat=meta&repo=$repo">$(gettext 'meta')</a>
     1.5  	<a class="active_non-free" href="$SCRIPT_NAME?cat=non-free&repo=$repo">$(gettext 'non-free')</a>
     1.6  	<a class="active_all" href="$SCRIPT_NAME?cat=all&repo=$repo">$(gettext 'all')</a>
     1.7 +	<a class="active_extra" href="$SCRIPT_NAME?cat=extra&repo=$repo">$(gettext 'extra')</a>
     1.8  EOT
     1.9  
    1.10  	if [ -d $LOCALSTATE/undigest ]; then
    1.11 @@ -384,8 +385,11 @@
    1.12  $(table_head)
    1.13  <tbody>
    1.14  EOT
    1.15 -			grep "| $grep_category |" $i/packages.desc | \
    1.16 -				parse_packages_desc
    1.17 +			if [ "$category" == "extra" ]; then
    1.18 +				sed 's,.*,&|--|--|--|http://mirror.slitaz.org/packages/get/&,' $i/extra.list
    1.19 +			else
    1.20 +				grep "| $grep_category |" $i/packages.desc
    1.21 +			fi | parse_packages_desc
    1.22  			cat << EOT
    1.23  </tbody>
    1.24  </table>