1 |
commit: 2acc5c3278354f56c70f9f48e66eb0203d5e8370 |
2 |
Author: Oleksandr Natalenko <oleksandr <AT> natalenko <DOT> name> |
3 |
AuthorDate: Sat Nov 17 14:43:09 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 19 22:19:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=2acc5c32 |
7 |
|
8 |
lddtree.py: use errno properly |
9 |
|
10 |
os.errno interface is removed [1], thus should not be used. In fact, it |
11 |
is not used in other places of lddtree.py, so fix this one too, because |
12 |
it breaks --copy-to-tree on systems with Python 3.7. |
13 |
|
14 |
[1] https://bugs.python.org/issue33666 |
15 |
|
16 |
Bug: https://bugs.gentoo.org/671522 |
17 |
Signed-off-by: Oleksandr Natalenko <oleksandr <AT> natalenko.name> |
18 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
19 |
|
20 |
lddtree.py | 2 +- |
21 |
1 file changed, 1 insertion(+), 1 deletion(-) |
22 |
|
23 |
diff --git a/lddtree.py b/lddtree.py |
24 |
index 2bfaaae..66f5e01 100755 |
25 |
--- a/lddtree.py |
26 |
+++ b/lddtree.py |
27 |
@@ -122,7 +122,7 @@ def makedirs(path): |
28 |
try: |
29 |
os.makedirs(path) |
30 |
except OSError as e: |
31 |
- if e.errno != os.errno.EEXIST: |
32 |
+ if e.errno != errno.EEXIST: |
33 |
raise |