cookutils rev 34

cook: improve debug info and function
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 06 19:12:33 2011 +0200 (2011-05-06)
parents 62bf9ac888b1
children 9c4eb4fc7273
files cook
line diff
     1.1 --- a/cook	Fri May 06 18:51:52 2011 +0200
     1.2 +++ b/cook	Fri May 06 19:12:33 2011 +0200
     1.3 @@ -222,9 +222,10 @@
     1.4  debug_info() {
     1.5  	echo -e "\nDebug information"
     1.6  	separator
     1.7 -	fgrep ERROR $LOGS/$pkg.log
     1.8 -	fgrep "No package" $LOGS/$pkg.log
     1.9 -	fgrep "cp: can't stat" $LOGS/$pkg.log
    1.10 +	for error in ERROR "No package" "cp: can't stat" "can't open"
    1.11 +	do
    1.12 +		fgrep "$error" $LOGS/$pkg.log
    1.13 +	done
    1.14  	separator && echo ""
    1.15  }
    1.16