diff options
author | Armin Kuster <akuster808@gmail.com> | 2022-05-03 14:31:21 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-05-14 10:51:32 -0700 |
commit | a764533c20c9cedf0834138076d38d329982e1af (patch) | |
tree | 4cedb5cc647faeef6636ad0319b495cf89d8a2ea /dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch | |
parent | 20c13f6335165d693f7f3270c829b3069dbbad66 (diff) | |
download | meta-security-a764533c20c9cedf0834138076d38d329982e1af.tar.gz |
meta-security: move perl and python recipes to dynamic layers structure
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch')
-rw-r--r-- | dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch b/dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch new file mode 100644 index 0000000..7f0812c --- /dev/null +++ b/dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From fe3436d65518099d35c643848cba50253abc249c Mon Sep 17 00:00:00 2001 | ||
2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
3 | Date: Thu, 9 May 2019 14:44:51 +0900 | ||
4 | Subject: [PATCH] To fix build error of xrange. | ||
5 | |||
6 | NameError: name 'xrange' is not defined | ||
7 | |||
8 | Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
9 | --- | ||
10 | fail2ban/__init__.py | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/fail2ban/__init__.py b/fail2ban/__init__.py | ||
14 | index fa6dcf7..61789a4 100644 | ||
15 | --- a/fail2ban/__init__.py | ||
16 | +++ b/fail2ban/__init__.py | ||
17 | @@ -82,7 +82,7 @@ strptime("2012", "%Y") | ||
18 | |||
19 | # short names for pure numeric log-level ("Level 25" could be truncated by short formats): | ||
20 | def _init(): | ||
21 | - for i in xrange(50): | ||
22 | + for i in range(50): | ||
23 | if logging.getLevelName(i).startswith('Level'): | ||
24 | logging.addLevelName(i, '#%02d-Lev.' % i) | ||
25 | _init() | ||
26 | -- | ||
27 | 2.7.4 | ||
28 | |||