mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 16:54:32 +04:00
python: trim all whitespaces for the operator in the filespec
That would allow for files (in filespecs) to be indented. As it is now, the files need to be added at the begginning of the line. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -45,6 +45,7 @@ define PyPackage
|
|||||||
@echo "$$$$$$$$$$(call shvar,PyPackage/$(1)/filespec)" | ( \
|
@echo "$$$$$$$$$$(call shvar,PyPackage/$(1)/filespec)" | ( \
|
||||||
IFS='|'; \
|
IFS='|'; \
|
||||||
while read fop fspec fperm; do \
|
while read fop fspec fperm; do \
|
||||||
|
fop=`echo "$$$$$$$$fop" | tr -d ' \t\n'`; \
|
||||||
if [ "$$$$$$$$fop" = "+" ]; then \
|
if [ "$$$$$$$$fop" = "+" ]; then \
|
||||||
if [ ! -e "$(PKG_INSTALL_DIR)$$$$$$$$fspec" ]; then \
|
if [ ! -e "$(PKG_INSTALL_DIR)$$$$$$$$fspec" ]; then \
|
||||||
echo "File not found '$(PKG_INSTALL_DIR)$$$$$$$$fspec'"; \
|
echo "File not found '$(PKG_INSTALL_DIR)$$$$$$$$fspec'"; \
|
||||||
|
|||||||
Reference in New Issue
Block a user