From cc48cd207d9995e56b4b54c065965f85eaa9569c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 28 Dec 2019 11:04:29 +0700 Subject: [PATCH] afew: add python 3.8 compability patch --- srcpkgs/afew/patches/afew-python-3.8.patch | 8 ++++++++ srcpkgs/afew/template | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/afew/patches/afew-python-3.8.patch diff --git a/srcpkgs/afew/patches/afew-python-3.8.patch b/srcpkgs/afew/patches/afew-python-3.8.patch new file mode 100644 index 0000000000..6275d8f9d0 --- /dev/null +++ b/srcpkgs/afew/patches/afew-python-3.8.patch @@ -0,0 +1,8 @@ +--- afew/filters/__init__.py ++++ afew/filters/__init__.py +@@ -6,4 +6,4 @@ + + __all__ = list(filename[:-3] + for filename in glob.glob1(os.path.dirname(__file__), '*.py') +- if filename is not '__init__.py') ++ if filename != '__init__.py') diff --git a/srcpkgs/afew/template b/srcpkgs/afew/template index 9f5020c9f2..9861d25fd5 100644 --- a/srcpkgs/afew/template +++ b/srcpkgs/afew/template @@ -1,7 +1,7 @@ # Template file for 'afew' pkgname=afew version=2.0.0 -revision=3 +revision=4 archs=noarch build_style=python3-module pycompile_module="afew"