cookutils rev 149

web: make sure we display pkg summary or debug info
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 12 11:25:13 2011 +0200 (2011-05-12)
parents e7bf90b7d179
children 38f102c5c70b
files web/cooker.cgi
line diff
     1.1 --- a/web/cooker.cgi	Thu May 12 10:49:42 2011 +0200
     1.2 +++ b/web/cooker.cgi	Thu May 12 11:25:13 2011 +0200
     1.3 @@ -107,17 +107,17 @@
     1.4  			if grep -q "cook:$pkg$" $command; then
     1.5  				echo "<pre>The Cooker is currently building: $pkg</pre>"
     1.6  			fi
     1.7 -			if fgrep -q "Summary " $LOGS/$pkg.log; then
     1.8 +			if fgrep -q "Summary for:" $LOGS/$pkg.log; then
     1.9  				echo "<h3>Cook summary</h3>"
    1.10  				echo '<pre>'
    1.11 -				grep -A 8 "^Summary " $LOGS/$pkg.log | sed /^$/d | \
    1.12 +				grep -A 8 "^Summary for:" $LOGS/$pkg.log | sed /^$/d | \
    1.13  					syntax_highlighter log
    1.14  				echo '</pre>'
    1.15  			fi
    1.16 -			if fgrep -q "Debug " $LOGS/$pkg.log; then
    1.17 +			if fgrep -q "Debug information" $LOGS/$pkg.log; then
    1.18  				echo "<h3>Cook failed</h3>"
    1.19  				echo '<pre>'
    1.20 -				grep -A 8 "^Debug " $LOGS/$pkg.log | sed /^$/d | \
    1.21 +				grep -A 8 "^Debug information" $LOGS/$pkg.log | sed /^$/d | \
    1.22  						syntax_highlighter log
    1.23  				echo '</pre>'
    1.24  			fi