cookutils rev 87

Fix packge status (again)
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 08 03:20:33 2011 +0200 (2011-05-08)
parents 6323bfa2e2fc
children 68447a52614f
files web/cooker.cgi
line diff
     1.1 --- a/web/cooker.cgi	Sun May 08 03:00:38 2011 +0200
     1.2 +++ b/web/cooker.cgi	Sun May 08 03:20:33 2011 +0200
     1.3 @@ -96,16 +96,15 @@
     1.4  
     1.5  		# Check for a log file and display summary if it exists.
     1.6  		if [ -f "$log" ]; then
     1.7 +			if grep -q "cook:$pkg$" $command; then
     1.8 +				echo "<pre>The Cooker is currently cooking: $pkg</pre>"
     1.9 +			fi
    1.10  			if fgrep -q "Summary " $LOGS/$pkg.log; then
    1.11 -				if grep -q "cook:$pkg$" $command; then
    1.12 -					echo "<pre>The Cooker is currently cooking: $pkg</pre>"
    1.13 -				else
    1.14 -					echo "<h3>Cook summary</h3>"
    1.15 -					echo '<pre>'
    1.16 -					grep -A 8 "^Summary " $LOGS/$pkg.log | sed /^$/d | \
    1.17 -						syntax_highlighter log
    1.18 -					echo '</pre>'
    1.19 -				fi
    1.20 +				echo "<h3>Cook summary</h3>"
    1.21 +				echo '<pre>'
    1.22 +				grep -A 8 "^Summary " $LOGS/$pkg.log | sed /^$/d | \
    1.23 +					syntax_highlighter log
    1.24 +				echo '</pre>'
    1.25  			fi
    1.26  			if fgrep -q "Debug " $LOGS/$pkg.log; then
    1.27  				echo "<h3>Cook failed</h3>"