From 272eeb5809192984afeddfcdd10ae317accdfaf5 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 5 Sep 2010 13:34:16 +0200 Subject: always apply EPREFIX prepending to GLOBAL_CONFIG_PATH --- pym/_emerge/actions.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pym/_emerge/actions.py') diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 18052dcda..473f6fb7a 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1837,9 +1837,13 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): portdb = trees[settings["ROOT"]]["porttree"].dbapi myportdir = portdb.porttree_root out = portage.output.EOutput() + global_config_path = GLOBAL_CONFIG_PATH + if settings['EPREFIX']: + global_config_path = os.path.join(settings['EPREFIX'], + GLOBAL_CONFIG_PATH.lstrip(os.sep)) if not myportdir: sys.stderr.write("!!! PORTDIR is undefined. " + \ - "Is %s/make.globals missing?\n" % GLOBAL_CONFIG_PATH) + "Is %s/make.globals missing?\n" % global_config_path) sys.exit(1) if myportdir[-1]=="/": myportdir=myportdir[:-1] @@ -1879,7 +1883,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): syncuri = settings.get("SYNC", "").strip() if not syncuri: writemsg_level("!!! SYNC is undefined. " + \ - "Is %s/make.globals missing?\n" % GLOBAL_CONFIG_PATH, + "Is %s/make.globals missing?\n" % global_config_path, noiselevel=-1, level=logging.ERROR) return 1 -- cgit v1.2.3-1-g7c22