1
0
فهرست منبع

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 16 سال پیش
والد
کامیت
18d98330bd
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      package/pkgmaker

+ 4 - 0
package/pkgmaker

@@ -216,6 +216,10 @@ for dn in */Makefile; do
 			(*)
 			(*)
 				# produce dependency on regular package
 				# produce dependency on regular package
 				# where the symbol is cached (see above)
 				# 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' \
 				print -u$h '\tselect' \
 				    ADK_PACKAGE_$(<../pkglist.d/"$dep")
 				    ADK_PACKAGE_$(<../pkglist.d/"$dep")
 				;;
 				;;