wok-6.x rev 7862
tazpkg-web: exclude path from common files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 01 21:01:35 2011 +0100 (2011-01-01) |
parents | e123f30cb507 |
children | 7057fef5a16a |
files | tazpkg-web/stuff/search.cgi |
line diff
1.1 --- a/tazpkg-web/stuff/search.cgi Sat Jan 01 19:20:04 2011 +0100 1.2 +++ b/tazpkg-web/stuff/search.cgi Sat Jan 01 21:01:35 2011 +0100 1.3 @@ -533,8 +533,11 @@ 1.4 _EOT_ 1.5 ( unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | grep ^$SEARCH: ; 1.6 unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | grep -v ^$SEARCH: ) | awk ' 1.7 -BEGIN { pkg="" } 1.8 +BEGIN { pkg=""; last="x" } 1.9 { 1.10 + if ($2 == "") next 1.11 + if (index($2,last) == 1) delete file[last] 1.12 + last=$2 1.13 if (pkg == "") pkg=$1 1.14 if ($1 == pkg) file[$2]=$1 1.15 else if (file[$2] == pkg) print