tazwok rev 374

tazwok: abort on any genpkg_rules error (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 27 00:43:22 2011 +0100 (2011-02-27)
parents e42e9b83b14e
children affd28413274
files tazwok
line diff
     1.1 --- a/tazwok	Sun Feb 27 00:22:11 2011 +0100
     1.2 +++ b/tazwok	Sun Feb 27 00:43:22 2011 +0100
     1.3 @@ -952,14 +952,12 @@
     1.4  	# the package.
     1.5  	report step "Building $PACKAGE with the receipt"
     1.6  	report open-bloc
     1.7 -	if fgrep -q ^genpkg_rules $RECEIPT; then
     1.8 +	if grep -q ^genpkg_rules $RECEIPT; then
     1.9  		
    1.10  		# Log process.
    1.11  		echo "executing genpkg_rules" >> $LOG
    1.12  		report step "Executing genpkg_rules"
    1.13 -		set -e
    1.14 -		genpkg_rules
    1.15 -		set +e
    1.16 +		( set -e;  genpkg_rules ) || return 1
    1.17  		report end-step
    1.18  		check_fsh
    1.19  		cd $WOK/$PACKAGE