# HG changeset patch # User Pascal Bellard # Date 1293912095 -3600 # Node ID cf639851d4be705ff8345641e5bebdae07bb3ec7 # Parent e123f30cb507ecd9677dae955046c72e633d2404 tazpkg-web: exclude path from common files diff -r e123f30cb507 -r cf639851d4be tazpkg-web/stuff/search.cgi --- a/tazpkg-web/stuff/search.cgi Sat Jan 01 19:20:04 2011 +0100 +++ b/tazpkg-web/stuff/search.cgi Sat Jan 01 21:01:35 2011 +0100 @@ -533,8 +533,11 @@ _EOT_ ( unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | grep ^$SEARCH: ; unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | grep -v ^$SEARCH: ) | awk ' -BEGIN { pkg="" } +BEGIN { pkg=""; last="x" } { + if ($2 == "") next + if (index($2,last) == 1) delete file[last] + last=$2 if (pkg == "") pkg=$1 if ($1 == pkg) file[$2]=$1 else if (file[$2] == pkg) print