From c281c323adf14ece439b98dcf35531666266a0a5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 7 Dec 2011 23:26:02 -0800 Subject: dispatch-conf: experimental prefix support --- bin/dispatch-conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 3089329db..1cad9e011 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -85,7 +85,7 @@ class dispatch: confs = [] count = 0 - config_root = '/' + config_root = os.environ.get("__PORTAGE_TEST_EPREFIX", "/") self.options = portage.dispatch_conf.read_config(MANDATORY_OPTS) if "log-file" in self.options: @@ -120,7 +120,8 @@ class dispatch: # for path in config_paths: - path = portage.normalize_path(path) + path = portage.normalize_path( + os.path.join(config_root, path.lstrip(os.sep))) try: mymode = os.stat(path).st_mode except OSError: -- cgit v1.2.3-1-g7c22