Browse Source

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>
lilik-openwrt-22.03
Alexandru Ardelean 10 years ago
parent
commit
885fe99cd2
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      lang/python3/files/python3-package.mk

+ 4
- 0
lang/python3/files/python3-package.mk View File

@ -37,6 +37,10 @@ define Py3Package
IFS='|'; \ IFS='|'; \
while read fop fspec fperm; do \ while read fop fspec fperm; do \
if [ "$$$$$$$$fop" = "+" ]; then \ if [ "$$$$$$$$fop" = "+" ]; then \
if [ ! -e "$(PKG_INSTALL_DIR)$$$$$$$$fspec" ]; then \
echo "File not found '$(PKG_INSTALL_DIR)$$$$$$$$fspec'"; \
exit 1; \
fi; \
dpath=`dirname "$$$$$$$$fspec"`; \ dpath=`dirname "$$$$$$$$fspec"`; \
if [ -n "$$$$$$$$fperm" ]; then \ if [ -n "$$$$$$$$fperm" ]; then \
dperm="-m$$$$$$$$fperm"; \ dperm="-m$$$$$$$$fperm"; \


Loading…
Cancel
Save