diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2017-07-30 14:09:19 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-08-01 17:40:54 -0700 |
commit | b575d008bd56c4a900824109a2952d28c1896563 (patch) | |
tree | ab327a1a5bd09f16a577070d923eba9298514b3f /lib | |
parent | c8b2100630698a214f5787a3c51f44debfa23252 (diff) | |
download | spack-b575d008bd56c4a900824109a2952d28c1896563.tar.gz spack-b575d008bd56c4a900824109a2952d28c1896563.tar.bz2 spack-b575d008bd56c4a900824109a2952d28c1896563.tar.xz spack-b575d008bd56c4a900824109a2952d28c1896563.zip |
Fix issue with case check and `spack -m`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/hooks/case_consistency.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/spack/spack/hooks/case_consistency.py b/lib/spack/spack/hooks/case_consistency.py index fcf9ee2588..f6246f6008 100644 --- a/lib/spack/spack/hooks/case_consistency.py +++ b/lib/spack/spack/hooks/case_consistency.py @@ -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): |