From 18d98330bdc4891b4a04de2492e6542f601cdc3c Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Sat, 19 Jun 2010 15:54:54 +0200 Subject: pkgmaker: warn on unreachable dependency This is what actually should have happened whenever you saw 'cannot open $() input' error message, which was quite useless when it comes to tracking the source of the error down. --- package/pkgmaker | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/pkgmaker') diff --git a/package/pkgmaker b/package/pkgmaker index 4cf2181ef..677a44d08 100644 --- a/package/pkgmaker +++ b/package/pkgmaker @@ -216,6 +216,10 @@ for dn in */Makefile; do (*) # produce dependency on regular package # where the symbol is cached (see above) + if [[ ! -f ../pkglist.d/"$dep" ]]; then + print -u2 "Warning: $PKG_NAME: unreachable dependency '$dep'" + continue + fi print -u$h '\tselect' \ ADK_PACKAGE_$(<../pkglist.d/"$dep") ;; -- cgit v1.2.3