Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pax-utils:master commit in: /
Date: Fri, 16 Apr 2021 03:39:24
Message-Id: 1618543423.ea2721570e1993b0f1ffc3a9b6b9d9aaa7ad22c9.vapier@gentoo
1 commit: ea2721570e1993b0f1ffc3a9b6b9d9aaa7ad22c9
2 Author: Mike Frysinger <vapier <AT> chromium <DOT> org>
3 AuthorDate: Fri Apr 16 03:23:43 2021 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 16 03:23:43 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=ea272157
7
8 lddtree: apply functools cache to some repeated filesystem calls
9
10 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
11
12 lddtree.py | 3 +++
13 1 file changed, 3 insertions(+)
14
15 diff --git a/lddtree.py b/lddtree.py
16 index e3dafda..7ec04fa 100755
17 --- a/lddtree.py
18 +++ b/lddtree.py
19 @@ -40,6 +40,7 @@ they need will be placed into /foo/lib/ only.
20 """
21
22 import argparse
23 +import functools
24 import glob
25 import errno
26 import os
27 @@ -87,6 +88,7 @@ def normpath(path):
28 return os.path.normpath(path).replace('//', '/')
29
30
31 +@×××××××××.lru_cache(maxsize=None)
32 def readlink(path, root, prefixed=False):
33 """Like os.readlink(), but relative to a |root|
34
35 @@ -167,6 +169,7 @@ exec \
36 os.chmod(wrappath, 0o0755)
37
38
39 +@×××××××××.lru_cache(maxsize=None)
40 def ParseLdPaths(str_ldpaths, root='', path=None):
41 """Parse the colon-delimited list of paths and apply ldso rules to each