From aa2baa2120c6b661bc5550cfa49364146efc4799 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 27 Jun 2016 15:28:12 +0300 Subject: python: do not allow packaging of windows exe files Thanks to @ryzhovau for reporting. Signed-off-by: Alexandru Ardelean --- lang/python/files/python-package.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lang/python/files/python-package.mk') diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index 1f6771845..ff0c2dcaa 100644 --- 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 -- cgit