From: Alexandru Ardelean Date: Thu, 16 Oct 2014 13:15:56 +0000 (+0300) Subject: python: enforce the existence of files in the filespecs X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=09c02844e497998dde3850fe231a3cc2d42f8125;p=feed%2Fpackages.git python: enforce the existence of files in the filespecs Seems that this allows some goofs, because some files silently do not get copied and the build succeeds, even though it shouldn't. Signed-off-by: Alexandru Ardelean --- diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index 6ac6051fa6..dc30494fee 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -37,6 +37,10 @@ define PyPackage IFS='|'; \ while read fop fspec fperm; do \ if [ "$$$$$$$$fop" = "+" ]; then \ + if [ ! -e "$(PKG_INSTALL_DIR)$$$$$$$$fspec" ]; then \ + echo "File not found '$(PKG_INSTALL_DIR)$$$$$$$$fspec'"; \ + exit 1; \ + fi; \ dpath=`dirname "$$$$$$$$fspec"`; \ if [ -n "$$$$$$$$fperm" ]; then \ dperm="-m$$$$$$$$fperm"; \