lib/spack/spack/store.py: Fix #28170 for padding relocation (#33122)

This commit is contained in:
Brian Vanderwende 2022-11-16 19:56:00 -07:00 committed by GitHub
parent 6a08e9ed08
commit c721aab006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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