summaryrefslogtreecommitdiff
path: root/package/pkgmaker
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2010-06-19 15:54:54 +0200
committerPhil Sutter <phil@nwl.cc>2010-06-20 16:24:57 +0200
commit18d98330bdc4891b4a04de2492e6542f601cdc3c (patch)
treef8abdae40eb9789a4d205a27825cb9fd7aaf578e /package/pkgmaker
parent70891937006fcfe387e4a1ba5d03acd6f5f37662 (diff)
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.
Diffstat (limited to 'package/pkgmaker')
-rw-r--r--package/pkgmaker4
1 files changed, 4 insertions, 0 deletions
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")
;;