Fix issue with case check and spack -m

This commit is contained in:
Todd Gamblin 2017-07-30 14:09:19 -07:00
parent c8b2100630
commit b575d008bd

View File

@ -39,7 +39,11 @@ def pre_run():
if platform.system() != "Darwin":
return
git_case_consistency_check(spack.repo.get_repo('builtin').packages_path)
try:
repo = spack.repo.get_repo('builtin')
git_case_consistency_check(repo.packages_path)
except spack.repository.UnknownNamespaceError:
pass
def git_case_consistency_check(path):