From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E33FC1381F3 for ; Thu, 15 Nov 2012 20:29:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD8BB21C034; Thu, 15 Nov 2012 20:28:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3B60221C034 for ; Thu, 15 Nov 2012 20:28:58 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 58C9133D97A for ; Thu, 15 Nov 2012 20:28:57 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id 1B22E20C65; Thu, 15 Nov 2012 20:28:56 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-projects commit in pax-utils: lddtree.py X-VCS-Repository: gentoo-projects X-VCS-Files: lddtree.py X-VCS-Directories: pax-utils X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20121115202856.1B22E20C65@flycatcher.gentoo.org> Date: Thu, 15 Nov 2012 20:28:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d705114f-7e52-41e2-9c57-022c539e5f66 X-Archives-Hash: 6c180dcdb481572474dd73c286462303 vapier 12/11/15 20:28:56 Modified: lddtree.py Log: lddtree.py: add root to displayed interp path Revision Changes Path 1.8 pax-utils/lddtree.py file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?rev=1.8&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?rev=1.8&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?r1=1.7&r2=1.8 Index: lddtree.py =================================================================== RCS file: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- lddtree.py 15 Nov 2012 20:26:27 -0000 1.7 +++ lddtree.py 15 Nov 2012 20:28:55 -0000 1.8 @@ -2,7 +2,7 @@ # Copyright 2012 Gentoo Foundation # Copyright 2012 Mike Frysinger # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v 1.7 2012/11/15 20:26:27 vapier Exp $ +# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v 1.8 2012/11/15 20:28:55 vapier Exp $ """Read the ELF dependency tree and show it @@ -242,9 +242,10 @@ if segment.header.p_type != 'PT_INTERP': continue - ret['interp'] = interp = segment.get_interp_name() + interp = segment.get_interp_name() + ret['interp'] = normpath(root + interp) ret['libs'][os.path.basename(interp)] = { - 'path': normpath(root + interp), + 'path': ret['interp'], 'needed': [], } # XXX: Should read it and scan for /lib paths. @@ -302,7 +303,7 @@ def _ShowVersion(_option, _opt, _value, _parser): - id = '$Id: lddtree.py,v 1.7 2012/11/15 20:26:27 vapier Exp $'.split() + id = '$Id: lddtree.py,v 1.8 2012/11/15 20:28:55 vapier Exp $'.split() print('%s-%s %s %s' % (id[1].split('.')[0], id[2], id[3], id[4])) sys.exit(0)