Browse Source

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.
Phil Sutter 14 years ago
parent
commit
18d98330bd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      package/pkgmaker

+ 4 - 0
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")
 				;;