diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-03-16 05:02:20 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-03-16 05:02:20 +0000 |
commit | 7ec1629e54531e31ca4d8e4a22b0115cfd1cd5d8 (patch) | |
tree | 5286533a7c3fc7e9f1c7584a3638bc125c252b1f /pym | |
parent | 7a89b38a01b4477a281c05e374652ba6e5028a7f (diff) | |
download | portage-7ec1629e54531e31ca4d8e4a22b0115cfd1cd5d8.tar.gz portage-7ec1629e54531e31ca4d8e4a22b0115cfd1cd5d8.tar.bz2 portage-7ec1629e54531e31ca4d8e4a22b0115cfd1cd5d8.zip |
Automatically convert ROOT and PORTAGE_CONFIGROOT to absolute paths when necessary since relative paths lead to problems. (trunk r6209:6211)
svn path=/main/branches/2.1.2/; revision=6214
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage.py b/pym/portage.py index cfef72343..c977637ec 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1004,8 +1004,8 @@ class config: if config_root is None: config_root = "/" - config_root = \ - normalize_path(config_root).rstrip(os.path.sep) + os.path.sep + config_root = normalize_path(os.path.abspath( + config_root)).rstrip(os.path.sep) + os.path.sep check_var_directory("PORTAGE_CONFIGROOT", config_root) @@ -1256,8 +1256,8 @@ class config: if target_root is None: target_root = "/" - target_root = \ - normalize_path(target_root).rstrip(os.path.sep) + os.path.sep + target_root = normalize_path(os.path.abspath( + target_root)).rstrip(os.path.sep) + os.path.sep check_var_directory("ROOT", target_root) |