aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-12-23 06:50:55 -0500
committerAnthony G. Basile <blueness@gentoo.org>2012-12-24 05:57:57 -0500
commitfad10184dca8295f5275bf877ebe727565d1393e (patch)
tree7c88c67a2b1bade94568cac38d39522df2088a44
parentmisc/alt-revdep-pax: correct expand_linkings() to include first ELF object in... (diff)
downloadelfix-fad10184dca8295f5275bf877ebe727565d1393e.tar.gz
elfix-fad10184dca8295f5275bf877ebe727565d1393e.tar.bz2
elfix-fad10184dca8295f5275bf877ebe727565d1393e.zip
misc/alt-revdep-pax: comment on how to use portage for /var/db/pkg data
-rwxr-xr-xmisc/alt-revdep-pax7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/alt-revdep-pax b/misc/alt-revdep-pax
index d5770e4..f35a9ea 100755
--- a/misc/alt-revdep-pax
+++ b/misc/alt-revdep-pax
@@ -51,6 +51,13 @@ Here the sonames were obtained from the ELF object by scanelf -nm
"""
def get_object_needed():
+ """
+ import portage
+ vardb = portage.db[portage.root]["vartree"].dbapi
+ vardb.aux_get('sys-apps/coreutils-8.20', ['NEEDED.ELF.2'])
+ vardb.cpv_all() # list of all packages
+ """
+
var_db_pkg = '/var/db/pkg'
object_needed = {}