summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/store.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/store.py b/lib/spack/spack/store.py
index 40a2574998..bfb8eee194 100644
--- a/lib/spack/spack/store.py
+++ b/lib/spack/spack/store.py
@@ -119,6 +119,7 @@ def parse_install_tree(config_dict):
msg = "Cannot pad %s to %s characters." % (root, padded_length)
msg += " It is already %s characters long" % len(root)
tty.warn(msg)
+ root = root.rstrip(os.path.sep)
else:
root = unpadded_root