commit aa2baa2120c6b661bc5550cfa49364146efc4799
parent a9c7735c753db66d9afdea4517bdefb9430573bb
Author: Alexandru Ardelean <ardeleanalex@gmail.com>
Date: Mon, 27 Jun 2016 15:28:12 +0300
python: do not allow packaging of windows exe files
Thanks to @ryzhovau for reporting.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lang/python/Makefile b/lang/python/Makefile
@@ -12,7 +12,7 @@ include ./files/python-package.mk
PKG_NAME:=python
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
-PKG_RELEASE:=8
+PKG_RELEASE:=9
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk
@@ -45,7 +45,7 @@ define PyPackage
$(call shexport,PyPackage/$(1)/filespec)
define Package/$(1)/install
- find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
+ find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
@echo "$$$$$$$$$$(call shvar,PyPackage/$(1)/filespec)" | ( \
IFS='|'; \
while read fop fspec fperm; do \
@@ -103,7 +103,7 @@ define Build/Compile/PyMod
, \
./setup.py $(2) \
)
- find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
+ find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
endef
define PyMod/Default