python3: do not allow packaging of windows exe files
authorAlexandru Ardelean <[email protected]>
Mon, 27 Jun 2016 12:37:08 +0000 (15:37 +0300)
committerAlexandru Ardelean <[email protected]>
Mon, 27 Jun 2016 12:38:24 +0000 (15:38 +0300)
Thanks to @ryzhovau for reporting.

Signed-off-by: Alexandru Ardelean <[email protected]>
lang/python3/Makefile
lang/python3/files/python3-package.mk

index ae91f2fbb797337e663cc3ca52daf62c8a03ee38..fa03f7a9e3e1590dfdf84b5d0720f380f3b6c9d7 100644 (file)
@@ -14,7 +14,7 @@ PYTHON_VERSION:=$(PYTHON3_VERSION)
 PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
 
 PKG_NAME:=python3
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
index 72c499502cfc76115be2cb3c6c3149d2819299f4..bae149c48e6f77962c001ff7924376b7dedb5cbc 100644 (file)
@@ -62,7 +62,7 @@ define Py3Package
   $(call shexport,Py3Package/$(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,Py3Package/$(1)/filespec)" | ( \
                IFS='|'; \
                while read fop fspec fperm; do \
@@ -117,6 +117,6 @@ define Build/Compile/Py3Mod
                , \
                ./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