Ensure that ${ROOT} is normalized for bug #90444.
authorZac Medico <zmedico@gentoo.org>
Mon, 15 May 2006 02:40:19 +0000 (02:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 15 May 2006 02:40:19 +0000 (02:40 -0000)
svn path=/main/trunk/; revision=3356

pym/portage.py

index 7968af215850879b420a7fee19cf0abc8ffe0a36..46b403f02e99e7c3fe8471fe347c322ae727f152 100644 (file)
@@ -968,8 +968,8 @@ class config:
                        # backupenv is for calculated incremental variables.
                        self.backupenv = os.environ.copy()
 
-                       config_root = config_root.rstrip(os.path.sep) + os.path.sep
-                       target_root = target_root.rstrip(os.path.sep) + os.path.sep
+                       config_root = os.path.normpath(config_root) + os.path.sep
+                       target_root = os.path.normpath(target_root) + os.path.sep
 
                        for k, v in (("PORTAGE_CONFIGROOT", config_root),
                                ("ROOT", target_root)):