Automatically convert ROOT and PORTAGE_CONFIGROOT to absolute paths when necessary...
authorZac Medico <zmedico@gentoo.org>
Thu, 15 Mar 2007 20:23:17 +0000 (20:23 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 15 Mar 2007 20:23:17 +0000 (20:23 -0000)
svn path=/main/trunk/; revision=6210

pym/portage/__init__.py

index 31b3223086df5c0732c96f72b06a41a17e79d881..8dbc3bbe7739e6ae7e6059d6f6d7c45b8a926c67 100644 (file)
@@ -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)