From: Zac Medico Date: Thu, 15 Mar 2007 20:23:17 +0000 (-0000) Subject: Automatically convert ROOT and PORTAGE_CONFIGROOT to absolute paths when necessary... X-Git-Tag: v2.2_pre1~1585 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3d58062f5f990f9ba34620e5560fd06b04c42561;p=portage.git 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 --- 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)