wok-next rev 7863
tazpkg-web: exclude path from common files (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 01 21:19:34 2011 +0100 (2011-01-01) |
parents | cf639851d4be |
children | e681209feb60 |
files | tazpkg-web/stuff/search.cgi |
line diff
1.1 --- a/tazpkg-web/stuff/search.cgi Sat Jan 01 21:01:35 2011 +0100 1.2 +++ b/tazpkg-web/stuff/search.cgi Sat Jan 01 21:19:34 2011 +0100 1.3 @@ -536,7 +536,8 @@ 1.4 BEGIN { pkg=""; last="x" } 1.5 { 1.6 if ($2 == "") next 1.7 - if (index($2,last) == 1) delete file[last] 1.8 + if (index($2,last) == 1 && substr($2,1+length(last),1) == "/") 1.9 + delete file[last] 1.10 last=$2 1.11 if (pkg == "") pkg=$1 1.12 if ($1 == pkg) file[$2]=$1