From d78f3f59cd85cef221193a559b2308934ae3f46e Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 25 Jan 2011 20:29:15 +0100 Subject: [PATCH] egencache: call portage.config with _eprefix Fix operation of egencache in a Prefix environment. The _eprefix component was missing from the constructor invocation leading to egencache ignoring the prefix it was built for. --- bin/egencache | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/egencache b/bin/egencache index ec56ff367..cd7765e99 100755 --- a/bin/egencache +++ b/bin/egencache @@ -43,6 +43,7 @@ from portage.util import cmp_sort_key, writemsg_level from portage import cpv_getkey from portage.dep import Atom, isjustname from portage.versions import pkgcmp, pkgsplit, vercmp +from portage.const import EPREFIX try: from xml.etree import ElementTree @@ -736,7 +737,7 @@ def egencache_main(args): if options.portdir is not None: env['PORTDIR'] = options.portdir - settings = portage.config(config_root=config_root, + settings = portage.config(config_root=config_root, _eprefix=EPREFIX, target_root='/', local_config=False, env=env) default_opts = None @@ -752,7 +753,7 @@ def egencache_main(args): if options.cache_dir is not None: env['PORTAGE_DEPCACHEDIR'] = options.cache_dir - settings = portage.config(config_root=config_root, + settings = portage.config(config_root=config_root, _eprefix=EPREFIX, target_root='/', local_config=False, env=env) if not options.update and not options.update_use_local_desc \ -- 2.26.2