summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-15 20:23:17 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-15 20:23:17 +0000
commit3d58062f5f990f9ba34620e5560fd06b04c42561 (patch)
tree2b4e7cb6a4847d3a1c87dfc9635fd2359313ec3d
parentc7f27ae916e18fe7de73b76278a7e09d4ee1afd7 (diff)
downloadportage-3d58062f5f990f9ba34620e5560fd06b04c42561.tar.gz
portage-3d58062f5f990f9ba34620e5560fd06b04c42561.tar.bz2
portage-3d58062f5f990f9ba34620e5560fd06b04c42561.zip
Automatically convert ROOT and PORTAGE_CONFIGROOT to absolute paths when necessary since relative paths lead to problems. Thanks to Christian Heim <phreak@gentoo.org> for reporting.
svn path=/main/trunk/; revision=6210
-rw-r--r--pym/portage/__init__.py4
1 files 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)