summaryrefslogtreecommitdiff
path: root/lang/python/files/python-package.mk
diff options
context:
space:
mode:
authorAlexandru Ardelean <aa@ocedo.com>2014-10-16 16:15:56 +0300
committerAlexandru Ardelean <aa@ocedo.com>2014-10-17 16:30:45 +0300
commit09c02844e497998dde3850fe231a3cc2d42f8125 (patch)
tree3edd732994dd6df85cd4f1dd2497d11cbd8ce0e4 /lang/python/files/python-package.mk
parent714b1247b70b8b2c185aa30ae914fd90de826f41 (diff)
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 <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/files/python-package.mk')
-rw-r--r--lang/python/files/python-package.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk
index 6ac6051fa..dc30494fe 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"; \