From 90f0a8eacccd84499a8a8a15eff1ab2ece2a7a6a Mon Sep 17 00:00:00 2001 From: psakievich Date: Wed, 16 Nov 2022 13:37:32 -0700 Subject: Upstreams: add canonicalize path (#33946) --- lib/spack/spack/store.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/store.py b/lib/spack/spack/store.py index d9440f2aed..40a2574998 100644 --- a/lib/spack/spack/store.py +++ b/lib/spack/spack/store.py @@ -274,7 +274,9 @@ def _construct_upstream_dbs_from_install_roots(install_roots, _test=False): for install_root in reversed(install_roots): upstream_dbs = list(accumulated_upstream_dbs) next_db = spack.database.Database( - install_root, is_upstream=True, upstream_dbs=upstream_dbs + spack.util.path.canonicalize_path(install_root), + is_upstream=True, + upstream_dbs=upstream_dbs, ) next_db._fail_when_missing_deps = _test next_db._read() -- cgit v1.2.3-60-g2f50