wok-6.x diff tazpkg-web/stuff/search.cgi @ rev 3591
retawq+rhapsody: Fix desktop file icon path
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jun 28 01:54:04 2009 +0200 (2009-06-28) |
parents | b831574060d2 |
children | bc37eb38a4f4 |
line diff
1.1 --- a/tazpkg-web/stuff/search.cgi Mon Jun 22 19:44:48 2009 +0200 1.2 +++ b/tazpkg-web/stuff/search.cgi Sun Jun 28 01:54:04 2009 +0200 1.3 @@ -152,6 +152,7 @@ 1.4 esac 1.5 1.6 WOK=/home/slitaz/$SLITAZ_VERSION/wok 1.7 +PACKAGES_REPOSITORY=/home/slitaz/$SLITAZ_VERSION/packages 1.8 1.9 echo Content-type: text/html 1.10 echo 1.11 @@ -231,7 +232,7 @@ 1.12 { 1.13 cat << _EOT_ 1.14 <center> 1.15 -<i>$(ls /home/slitaz/$SLITAZ_VERSION/wok/ | wc -l) packages and $(unlzma -c /home/slitaz/$SLITAZ_VERSION/packages/files.list.lzma | wc -l) files in $SLITAZ_VERSION database</i> 1.16 +<i>$(ls $WOK/ | wc -l) packages and $(unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | wc -l) files in $SLITAZ_VERSION database</i> 1.17 </center> 1.18 1.19 <!-- End of content with round corner --> 1.20 @@ -423,7 +424,7 @@ 1.21 <pre class="package"> 1.22 _EOT_ 1.23 last="" 1.24 - unlzma -c /home/slitaz/$SLITAZ_VERSION/packages/files.list.lzma \ 1.25 + unlzma -c $PACKAGES_REPOSITORY/files.list.lzma \ 1.26 | grep $SEARCH | while read pkg file; do 1.27 echo "$file" | grep -q $SEARCH || continue 1.28 if [ "$last" != "${pkg%:}" ]; then 1.29 @@ -445,7 +446,7 @@ 1.30 <pre class="package"> 1.31 _EOT_ 1.32 last="" 1.33 - unlzma -c /home/slitaz/$SLITAZ_VERSION/packages/files.list.lzma \ 1.34 + unlzma -c $PACKAGES_REPOSITORY/files.list.lzma \ 1.35 | grep ^$SEARCH: | sed 's/.*: / /' | sort 1.36 elif [ "$OBJECT" = "Desc" ]; then 1.37 cat << _EOT_ 1.38 @@ -454,7 +455,7 @@ 1.39 <pre class="package"> 1.40 _EOT_ 1.41 last="" 1.42 - grep -i $SEARCH /home/slitaz/$SLITAZ_VERSION/packages/packages.desc | \ 1.43 + grep -i $SEARCH $PACKAGES_REPOSITORY/packages.desc | \ 1.44 sort | while read pkg extras ; do 1.45 . $WOK/$pkg/receipt 1.46 cat << _EOT_ 1.47 @@ -501,7 +502,7 @@ 1.48 <a href="$SLITAZ_VERSION/$CATEGORY.html#$PACKAGE">$PACKAGE</a> : $SHORT_DESC 1.49 _EOT_ 1.50 done 1.51 - equiv=/home/slitaz/$SLITAZ_VERSION/packages/packages.equiv 1.52 + equiv=$PACKAGES_REPOSITORY/packages.equiv 1.53 vpkgs="$(cat $equiv | cut -d= -f1 | grep $SEARCH)" 1.54 for vpkg in $vpkgs ; do 1.55 cat << _EOT_