cookutils rev 786

cook: always install implicit build depends
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Dec 16 17:37:24 2015 +0200 (2015-12-16)
parents 256af05e0925
children 36e267c88f80
files cook
line diff
     1.1 --- a/cook	Sun Dec 06 17:56:47 2015 +0100
     1.2 +++ b/cook	Wed Dec 16 17:37:24 2015 +0200
     1.3 @@ -635,7 +635,7 @@
     1.4  	for dep in $BUILD_DEPENDS; do
     1.5  		implicit="${dep%-dev}"
     1.6  		# Don't add implicit dependency if it defined in DEPENDS
     1.7 -		echo '' $DEPENDS '' | fgrep -q " $implicit " && implicit=''
     1.8 +		# echo '' $DEPENDS '' | fgrep -q " $implicit " && implicit=''
     1.9  		for i in $dep $implicit; do
    1.10  			if [ ! -f "$root$INSTALLED/$i/receipt" ]; then
    1.11  				# Try local package first. In some cases implicit doesn't exist, ex:
    1.12 @@ -933,7 +933,7 @@
    1.13  
    1.14  	action 'QA: checking for empty package...'
    1.15  	files=$(cat $WOK/$pkg/taz/$pkg-*/files.list | wc -l)
    1.16 -	if [ "$files" == 0 ] && [ "$CATEGORY" != 'meta' ]; then
    1.17 +	if [ "$files" -eq 0 -a "$CATEGORY" != 'meta' ]; then
    1.18  		newline; _ 'ERROR: empty package'
    1.19  		rm -f $command
    1.20  		exit 1