vapier 14/03/20 08:18:07 Modified: lddtree.py Log: lddtree.py: fix style
Revision Changes Path 1.43 pax-utils/lddtree.py file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?rev=1.43&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?rev=1.43&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?r1=1.42&r2=1.43 Index: lddtree.py =================================================================== RCS file: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- lddtree.py 23 Apr 2013 02:16:59 -0000 1.42 +++ lddtree.py 20 Mar 2014 08:18:06 -0000 1.43 @@ -3,7 +3,7 @@ # Copyright 2012-2013 Mike Frysinger <[email protected]> # 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.42 2013/04/23 02:16:59 vapier Exp $ +# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v 1.43 2014/03/20 08:18:06 vapier Exp $ # TODO: Handle symlinks. @@ -121,9 +121,10 @@ - (TODO) $LIB and friends Args: - str_ldpath: A colon-delimited string of paths + str_ldpaths: A colon-delimited string of paths root: The path to prepend to all paths found path: The object actively being parsed (used for $ORIGIN) + Returns: list of processed paths """ @@ -149,6 +150,7 @@ ldso_conf: The file to scan root: The path to prepend to all paths found _first: Recursive use only; is this the first ELF ? + Returns: list of paths found """ @@ -189,6 +191,7 @@ Args: root: The root tree to prepend to paths + Returns: dict containing library paths to search """ @@ -224,6 +227,7 @@ Args: elf1: an ELFFile object elf2: an ELFFile object + Returns: True if compatible, False otherwise """ @@ -244,6 +248,7 @@ elf: the elf which the library should be compatible with (ELF wise) lib: the library (basename) to search for ldpaths: a list of paths to search + Returns: the full path to the desired library """ @@ -269,6 +274,7 @@ conf, env, interp _first: Recursive use only; is this the first ELF ? _all_libs: Recursive use only; dict of all libs we've seen + Returns: a dict containing information about all the ELFs; e.g. { @@ -377,7 +383,7 @@ def _ShowVersion(_option, _opt, _value, _parser): - d = '$Id: lddtree.py,v 1.42 2013/04/23 02:16:59 vapier Exp $'.split() + d = '$Id: lddtree.py,v 1.43 2014/03/20 08:18:06 vapier Exp $'.split() print('%s-%s %s %s' % (d[1].split('.')[0], d[2], d[3], d[4])) sys.exit(0)
