From 3d58062f5f990f9ba34620e5560fd06b04c42561 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 15 Mar 2007 20:23:17 +0000 Subject: [PATCH] Automatically convert ROOT and PORTAGE_CONFIGROOT to absolute paths when necessary since relative paths lead to problems. Thanks to Christian Heim for reporting. svn path=/main/trunk/; revision=6210 --- pym/portage/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 31b322308..8dbc3bbe7 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -927,7 +927,7 @@ class config: config_root = "/" config_root = \ - normalize_path(config_root).rstrip(os.path.sep) + os.path.sep + normalize_path(os.path.abspath(config_root)) + os.path.sep check_var_directory("PORTAGE_CONFIGROOT", config_root) @@ -1179,7 +1179,7 @@ class config: target_root = "/" target_root = \ - normalize_path(target_root).rstrip(os.path.sep) + os.path.sep + normalize_path(os.path.abspath(target_root)) + os.path.sep check_var_directory("ROOT", target_root) -- 2.26.2