cookutils rev 91
web: show packages count for full cooklist
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 08 14:14:15 2011 +0200 (2011-05-08) |
parents | a0d3ea0fe886 |
children | 24855e9e15a6 |
files | web/cooker.cgi |
line diff
1.1 --- a/web/cooker.cgi Sun May 08 14:09:59 2011 +0200 1.2 +++ b/web/cooker.cgi Sun May 08 14:14:15 2011 +0200 1.3 @@ -125,14 +125,16 @@ 1.4 file=${QUERY_STRING#file=} 1.5 case "$file" in 1.6 activity|cooknotes|cooklist) 1.7 - echo "<h2>DB: $file</h2>" 1.8 + [ "$file" == "cooklist" ] && \ 1.9 + nb="packages: $(cat $cooklist | wc -l) 1.10 + echo "<h2>DB: $file $nb</h2>" 1.11 echo '<pre>' 1.12 tac $CACHE/$file | \ 1.13 sed s"#^\([^']* : \)#<span class='log-date'>\0</span>#"g 1.14 echo '</pre>' ;; 1.15 broken) 1.16 nb=$(cat $broken | wc -l) 1.17 - echo "<h2>Broken packages: $nb</h2>" 1.18 + echo "<h2>DB: broken packages: $nb</h2>" 1.19 echo '<pre>' 1.20 tac $CACHE/$file | \ 1.21 sed s"#^[^']*#<a href='cooker.cgi?pkg=\0'>\0</a>#"g