summaryrefslogtreecommitdiff
path: root/lib/spack/spack/verify.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/verify.py')
-rw-r--r--lib/spack/spack/verify.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/spack/spack/verify.py b/lib/spack/spack/verify.py
index 6abd1c9f66..01ca96fc7a 100644
--- a/lib/spack/spack/verify.py
+++ b/lib/spack/spack/verify.py
@@ -50,7 +50,9 @@ def create_manifest_entry(path: str) -> Dict[str, Any]:
def write_manifest(spec):
manifest_file = os.path.join(
- spec.prefix, spack.store.layout.metadata_dir, spack.store.layout.manifest_file_name
+ spec.prefix,
+ spack.store.STORE.layout.metadata_dir,
+ spack.store.STORE.layout.manifest_file_name,
)
if not os.path.exists(manifest_file):
@@ -107,14 +109,14 @@ def check_file_manifest(filename):
dirname = os.path.dirname(filename)
results = VerificationResults()
- while spack.store.layout.metadata_dir not in os.listdir(dirname):
+ while spack.store.STORE.layout.metadata_dir not in os.listdir(dirname):
if dirname == os.path.sep:
results.add_error(filename, "not owned by any package")
return results
dirname = os.path.dirname(dirname)
manifest_file = os.path.join(
- dirname, spack.store.layout.metadata_dir, spack.store.layout.manifest_file_name
+ dirname, spack.store.STORE.layout.metadata_dir, spack.store.STORE.layout.manifest_file_name
)
if not os.path.exists(manifest_file):
@@ -140,7 +142,7 @@ def check_spec_manifest(spec):
results = VerificationResults()
manifest_file = os.path.join(
- prefix, spack.store.layout.metadata_dir, spack.store.layout.manifest_file_name
+ prefix, spack.store.STORE.layout.metadata_dir, spack.store.STORE.layout.manifest_file_name
)
if not os.path.exists(manifest_file):