slitaz-forge diff pkgs/mirror-search.sh @ rev 397
mirror-search.sh: add backports
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 13 15:41:35 2014 +0000 (2014-01-13) |
parents | f7caab5251c0 |
children | f14e1d28ce93 |
line diff
1.1 --- a/pkgs/mirror-search.sh Thu Jul 25 03:03:47 2013 +0300 1.2 +++ b/pkgs/mirror-search.sh Mon Jan 13 15:41:35 2014 +0000 1.3 @@ -140,8 +140,9 @@ 1.4 category=*) SEARCH=${i#*=}; OBJECT=Category;; 1.5 maintainer=*) SEARCH=${i#*=}; OBJECT=Maintainer;; 1.6 license=*) SEARCH=${i#*=}; OBJECT=License;; 1.7 - version=[1-9]*) i=${i%%.*}; SLITAZ_VERSION=${i#*=}.0;; 1.8 - version=s*|version=4*) SLITAZ_VERSION=stable;; 1.9 + version=[1-9]*) i=${i%%.*}; SLITAZ_VERSION=${i#*=}.0;; 1.10 + version=s*|version=4*) SLITAZ_VERSION=stable;; 1.11 + version=b*) SLITAZ_VERSION=backports;; 1.12 version=u*) SLITAZ_VERSION=undigest;; 1.13 version=t*) SLITAZ_VERSION=tiny;; 1.14 esac 1.15 @@ -176,6 +177,7 @@ 1.16 2.0) selected_2="selected";; 1.17 3.0) selected_3="selected";; 1.18 stable) selected_stable="selected";; 1.19 + backports) selected_undigest="backports";; 1.20 undigest) selected_undigest="selected";; 1.21 esac 1.22 1.23 @@ -217,6 +219,7 @@ 1.24 <input type="text" name="query" id="query" size="20" value="$SEARCH" /> 1.25 <select name="version"> 1.26 <option value="cooking">$(gettext "cooking")</option> 1.27 + <option $selected_backports value="backports">$(gettext backports")</option> 1.28 <option $selected_stable value="stable">4.0</option> 1.29 <option $selected_3 value="3.0">3.0</option> 1.30 <option $selected_2 value="2.0">2.0</option>