summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index d3814f294..4cdf52208 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -968,8 +968,10 @@ class config:
# backupenv is for calculated incremental variables.
self.backupenv = os.environ.copy()
- config_root = os.path.normpath(config_root) + os.path.sep
- target_root = os.path.normpath(target_root) + os.path.sep
+ config_root = \
+ os.path.normpath(config_root).rstrip(os.path.sep) + os.path.sep
+ target_root = \
+ os.path.normpath(target_root).rstrip(os.path.sep) + os.path.sep
for k, v in (("PORTAGE_CONFIGROOT", config_root),
("ROOT", target_root)):