summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-27 18:17:55 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-27 18:17:55 -0700
commit04463a130cadf6eadcb2f49ba6026a248ea2c9c4 (patch)
tree55d22933d4dd8e1648d621ad24bc2c0b68e6045e /bin
parentdb1db3b011546e99e5248cb5f292b584eba26f03 (diff)
downloadportage-04463a130cadf6eadcb2f49ba6026a248ea2c9c4.tar.gz
portage-04463a130cadf6eadcb2f49ba6026a248ea2c9c4.tar.bz2
portage-04463a130cadf6eadcb2f49ba6026a248ea2c9c4.zip
Fix missed ROOT -> EROOT changes.
These go along with commit a715b65f7bd36409c1283e6911265d1f4405ab7a.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emaint2
-rwxr-xr-xbin/repoman6
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/emaint b/bin/emaint
index ea26e5548..1bee0fe0b 100755
--- a/bin/emaint
+++ b/bin/emaint
@@ -423,7 +423,7 @@ class VdbKeyHandler(object):
name = staticmethod(name)
def __init__(self):
- self.list = portage.db["/"]["vartree"].dbapi.cpv_all()
+ self.list = portage.db[portage.settings["EROOT"]]["vartree"].dbapi.cpv_all()
self.missing = []
self.keys = ["HOMEPAGE", "SRC_URI", "KEYWORDS", "DESCRIPTION"]
diff --git a/bin/repoman b/bin/repoman
index 8adccc774..2099241d9 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -574,9 +574,9 @@ repoman_settings['PORTDIR_OVERLAY'] = "%s %s" % \
repoman_settings = portage.config(local_config=False, _eprefix=eprefix,
env=dict(os.environ, PORTDIR_OVERLAY=repoman_settings['PORTDIR_OVERLAY']))
-root = '/'
+root = repoman_settings['EROOT']
trees = {
- root : {'porttree' : portage.portagetree(root, settings=repoman_settings)}
+ root : {'porttree' : portage.portagetree(settings=repoman_settings)}
}
portdb = trees[root]['porttree'].dbapi
@@ -2021,7 +2021,7 @@ for x in effective_scanlist:
xcache.update(shared_xmatch_caches)
arch_xmatch_caches[xmatch_cache_key] = xcache
- trees["/"]["porttree"].settings = dep_settings
+ trees[root]["porttree"].settings = dep_settings
portdb.settings = dep_settings
portdb.xcache = xcache
# for package.use.mask support inside dep_check