summaryrefslogtreecommitdiff
path: root/lang/python3/files/python3-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-20 18:05:03 +0300
commit885fe99cd29ea6b056e816ff78dd750b0e7dde8b (patch)
treee7c5b7954f3cdbdf16112633fc06fd76c8bc7c4c /lang/python3/files/python3-package.mk
parenta1fe8c48aae5058bbcd18c03194858700c249ef5 (diff)
python3: 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/python3/files/python3-package.mk')
-rw-r--r--lang/python3/files/python3-package.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/python3/files/python3-package.mk b/lang/python3/files/python3-package.mk
index 090d84601..7808d9ecd 100644
--- a/lang/python3/files/python3-package.mk
+++ b/lang/python3/files/python3-package.mk
@@ -37,6 +37,10 @@ define Py3Package
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"; \