cookutils rev 98

cooker: list testing is finish now cook them all. cook: one more QA check right after genpkg_rules
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 08 23:05:44 2011 +0200 (2011-05-08)
parents df9ad242ebbc
children ff176ddd0154
files cook cooker
line diff
     1.1 --- a/cook	Sun May 08 20:19:13 2011 +0200
     1.2 +++ b/cook	Sun May 08 23:05:44 2011 +0200
     1.3 @@ -465,9 +465,15 @@
     1.4  	if grep -q ^genpkg_rules $receipt; then
     1.5  		gettext -e "Executing: genpkg_rules\n"
     1.6  		cd $pkgdir
     1.7 -		mkdir -p $fs && genpkg_rules || (echo -e \
     1.8 -			"\nERROR: genpkg_rules failed\n" >> $LOGS/$pkg.log && exit 1)
     1.9 +		mkdir -p $fs && genpkg_rules || echo -e \
    1.10 +			"\nERROR: genpkg_rules failed\n" >> $LOGS/$pkg.log
    1.11  	fi
    1.12 +
    1.13 +	# First QA check to stop now if genpkg_rules failed.
    1.14 +	if fgrep -q ERROR: $LOGS/$pkg.log; then
    1.15 +		exit 1
    1.16 +	fi
    1.17 +	
    1.18  	cd $taz
    1.19  	for file in receipt description.txt
    1.20  	do
     2.1 --- a/cooker	Sun May 08 20:19:13 2011 +0200
     2.2 +++ b/cooker	Sun May 08 23:05:44 2011 +0200
     2.3 @@ -323,7 +323,8 @@
     2.4  			echo -e "\nSpecified list does not exist: $list\n" && exit 1
     2.5  		cp -a $list $cooklist
     2.6  		strip_blocked
     2.7 -		cook_order | tee $LOGS/cookorder.log ;;
     2.8 +		cook_order | tee $LOGS/cookorder.log
     2.9 +		cook_list ;;
    2.10  	rev|-r)
    2.11  		# Cook or recook a specific Hg revision.
    2.12  		rev="$2"