cookutils rev 780
cook: better handle implicit dependencies (to avoid tazpkg install warning)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 30 04:21:20 2015 +0200 (2015-11-30) |
parents | d8daf2802972 |
children | c2c2d31406cc |
files | cook |
line diff
1.1 --- a/cook Mon Nov 30 01:49:08 2015 +0200 1.2 +++ b/cook Mon Nov 30 04:21:20 2015 +0200 1.3 @@ -634,6 +634,8 @@ 1.4 [ -n "$root" ] && _ 'Using packages DB: %s' "$root$DB" 1.5 for dep in $BUILD_DEPENDS; do 1.6 implicit="${dep%-dev}" 1.7 + # Don't add implicit dependency if it defined in BUILD_DEPENDS 1.8 + echo '' $BUILD_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: