summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/store.py4
1 files changed, 3 insertions, 1 deletions
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()