cookutils rev 208

cook: show hw many missing dep we have
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 22 16:48:17 2011 +0200 (2011-05-22)
parents 2d3f188c845f
children f13dbe40a1c2
files cook
line diff
     1.1 --- a/cook	Sun May 22 16:44:51 2011 +0200
     1.2 +++ b/cook	Sun May 22 16:48:17 2011 +0200
     1.3 @@ -501,7 +501,8 @@
     1.4  	# is enable and cook fail we have ERROR in log, if no auto cook we have
     1.5  	# missing dep in cached file.
     1.6  	if fgrep -q "ERROR:" $LOGS/$pkg.log || [ -s "$CACHE/missing" ]; then
     1.7 -		echo -e "ERROR: missing dep\n"
     1.8 +		[ -s "$CACHE/missing" ] && nb=$(cat $CACHE/missing | wc -l)
     1.9 +		echo -e "ERROR: missing dep $nb\n"
    1.10  		exit 1
    1.11  	fi
    1.12