aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-08-01 02:20:20 +0000
committerMike Frysinger <vapier@gentoo.org>2014-08-01 02:20:20 +0000
commit65ba29675fa1a5617c2f9519f22b31e6de329e5e (patch)
tree01e18f30343941bb96ad593a4817953c5031b0c7 /lddtree.py
parentlddtree.py: drop TODO since we should handle symlinks now (diff)
downloadpax-utils-65ba29675fa1a5617c2f9519f22b31e6de329e5e.tar.gz
pax-utils-65ba29675fa1a5617c2f9519f22b31e6de329e5e.tar.bz2
pax-utils-65ba29675fa1a5617c2f9519f22b31e6de329e5e.zip
lddtree.py: when parsing libs, make sure to pass down the realpath too
Diffstat (limited to 'lddtree.py')
-rwxr-xr-xlddtree.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lddtree.py b/lddtree.py
index 275d2bf..2792479 100755
--- a/lddtree.py
+++ b/lddtree.py
@@ -4,7 +4,7 @@
# Copyright 2012-2014 The Chromium OS Authors
# Use of this source code is governed by a BSD-style license (BSD-3)
# pylint: disable=C0301
-# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v 1.52 2014/08/01 01:39:33 vapier Exp $
+# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v 1.53 2014/08/01 02:20:20 vapier Exp $
"""Read the ELF dependency tree and show it
@@ -427,8 +427,8 @@ def ParseELF(path, root='/', prefix='', ldpaths={'conf':[], 'env':[], 'interp':[
'needed': [],
}
if fullpath:
- lret = ParseELF(fullpath, root, prefix, ldpaths, debug=debug,
- _first=False, _all_libs=_all_libs)
+ lret = ParseELF(realpath, root, prefix, ldpaths, display=fullpath,
+ debug=debug, _first=False, _all_libs=_all_libs)
_all_libs[lib]['needed'] = lret['needed']
del elf
@@ -441,7 +441,7 @@ def _NormalizePath(option, _opt, value, parser):
def _ShowVersion(_option, _opt, _value, _parser):
- d = '$Id: lddtree.py,v 1.52 2014/08/01 01:39:33 vapier Exp $'.split()
+ d = '$Id: lddtree.py,v 1.53 2014/08/01 02:20:20 vapier Exp $'.split()
print('%s-%s %s %s' % (d[1].split('.')[0], d[2], d[3], d[4]))
sys.exit(0)