mirror of
https://github.com/openwrt/packages.git
synced 2026-11-16 03:14:01 +04:00
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>
This commit is contained in:
1 parent
714b1247b7
commit
09c02844e4
1 file changed
+4
@@ -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"; \
|
||||
|
||||
Reference in new issue
Block a user