python: do not allow packaging of windows exe files 2901/head
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 27 Jun 2016 12:28:12 +0000 (15:28 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 27 Jun 2016 12:31:12 +0000 (15:31 +0300)
Thanks to @ryzhovau for reporting.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/Makefile
lang/python/files/python-package.mk

index b96d874a9e70ecb258fe9652a2dd00f399e34833..307f907208c11cd1832d2eef7cbff309b51ab910 100644 (file)
@@ -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)
index 1f67718455feb2ba258050e9f422933904083a03..ff0c2dcaadae1fd9fa01872fe86e92a9ad869a26 100644 (file)
@@ -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