diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-06-21 19:25:01 +0200 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-07-20 08:10:41 +0200 |
commit | 21fa564df882d4a8187e1e699b7ae038095b4774 (patch) | |
tree | c980978caeef2c655a3bee824c3e96e631bf9f85 /lib | |
parent | b3e9abc72a181642235104d4c2784ac95acdcb02 (diff) | |
download | spack-21fa564df882d4a8187e1e699b7ae038095b4774.tar.gz spack-21fa564df882d4a8187e1e699b7ae038095b4774.tar.bz2 spack-21fa564df882d4a8187e1e699b7ae038095b4774.tar.xz spack-21fa564df882d4a8187e1e699b7ae038095b4774.zip |
Canonicalize positional argument to spack bootstrap mirror (#31180)
fixes #31139
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/bootstrap.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/bootstrap.py b/lib/spack/spack/cmd/bootstrap.py index e1bb4b034f..c4048b02fa 100644 --- a/lib/spack/spack/cmd/bootstrap.py +++ b/lib/spack/spack/cmd/bootstrap.py @@ -379,7 +379,9 @@ def _remove(args): def _mirror(args): - mirror_dir = os.path.join(args.root_dir, LOCAL_MIRROR_DIR) + mirror_dir = spack.util.path.canonicalize_path( + os.path.join(args.root_dir, LOCAL_MIRROR_DIR) + ) # TODO: Here we are adding gnuconfig manually, but this can be fixed # TODO: as soon as we have an option to add to a mirror all the possible |