slitaz-forge rev 332
mirror-search.sh: add links to receipt (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 28 15:35:55 2012 +0200 (2012-09-28) |
parents | bd852c8c6d06 |
children | 1b8983846ae9 |
files | pkgs/mirror-search.sh |
line diff
1.1 --- a/pkgs/mirror-search.sh Fri Sep 28 13:41:42 2012 +0200 1.2 +++ b/pkgs/mirror-search.sh Fri Sep 28 15:35:55 2012 +0200 1.3 @@ -448,26 +448,11 @@ 1.4 done 1.5 sedit="$sedit -e 's|^TAGS=\".*\"|TAGS=\"${tmp# }\"|'" 1.6 fi 1.7 - if [ -n "$DEPENDS" ]; then 1.8 - tmp="" 1.9 - for i in $(echo $DEPENDS) ; do 1.10 - tmp="$tmp <a href=\\\"?package=$i\\\">$i</a>" 1.11 + if [ -n "$DEPENDS$BUILD_DEPENDS$SUGGESTED" ]; then 1.12 + for i in $(echo $DEPENDS $BUILD_DEPENDS $SUGGESTED) ; do 1.13 + sedit="$sedit -e 's|\\([\" ]\\)$i\\([\" \\]\\)|\\1<a href=\\\"?package=$i\\\">$i</a>\\2|'" 1.14 + sedit="$sedit -e 's|^$i\\([\" \\]\\)|<a href=\\\"?package=$i\\\">$i</a>\\1|'" 1.15 done 1.16 - sedit="$sedit -e 's|^DEPENDS=\".*\"|DEPENDS=\"${tmp# }\"|'" 1.17 - fi 1.18 - if [ -n "$BUILD_DEPENDS" ]; then 1.19 - tmp="" 1.20 - for i in $(echo $BUILD_DEPENDS) ; do 1.21 - tmp="$tmp <a href=\\\"?package=$i\\\">$i</a>" 1.22 - done 1.23 - sedit="$sedit -e 's|^BUILD_DEPENDS=\".*\"|BUILD_DEPENDS=\"${tmp# }\"|'" 1.24 - fi 1.25 - if [ -n "$SUGGESTED" ]; then 1.26 - tmp="" 1.27 - for i in $(echo $SUGGESTED) ; do 1.28 - tmp="$tmp <a href=\\\"?package=$i\\\">$i</a>" 1.29 - done 1.30 - sedit="$sedit -e 's|^SUGGESTED=\".*\"|SUGGESTED=\"${tmp# }\"|'" 1.31 fi 1.32 if [ -n "$CONFIG_FILES" ]; then 1.33 tmp="" 1.34 @@ -841,6 +826,7 @@ 1.35 <pre> 1.36 $(receipt=$WOK/$SEARCH/taz/*/receipt 1.37 [ -f $receipt ] || receipt=$WOK/$SEARCH/receipt 1.38 + . /home/slitaz/repos/cookutils/cook.conf 1.39 . $receipt 1.40 cat $receipt | htmlize | urllink) 1.41 </pre>