summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGregory Becker <becker33@llnl.gov>2016-08-01 17:22:13 -0700
committerGregory Becker <becker33@llnl.gov>2016-08-01 17:22:13 -0700
commit679ceabf36bbe87e853141dd86936bc5cda4a337 (patch)
treebd9b2f55f8f2f0acb15d4bf9cc0fa6c5b8ebf3c9 /lib
parent31042e8ed10a8464b1a6cbbc165be8ca7e9510bc (diff)
downloadspack-679ceabf36bbe87e853141dd86936bc5cda4a337.tar.gz
spack-679ceabf36bbe87e853141dd86936bc5cda4a337.tar.bz2
spack-679ceabf36bbe87e853141dd86936bc5cda4a337.tar.xz
spack-679ceabf36bbe87e853141dd86936bc5cda4a337.zip
fixed flake8 errors
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/concretize.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/concretize.py b/lib/spack/spack/concretize.py
index 4fafee3a83..eced9917c9 100644
--- a/lib/spack/spack/concretize.py
+++ b/lib/spack/spack/concretize.py
@@ -336,16 +336,18 @@ class DefaultConcretizer(object):
spack.pkgsort.compiler_compare, other_spec.name)
matches = sorted(compiler_list, cmp=cmp_compilers)
if not matches:
+ arch = spec.architecture
raise UnavailableCompilerVersionError(other_compiler,
- spec.architecture.operating_system)
+ arch.platform_os)
# copy concrete version into other_compiler
index = 0
while not _proper_compiler_style(matches[index], spec.architecture):
index += 1
if index == len(matches) - 1:
+ arch = spec.architecture
raise UnavailableCompilerVersionError(spec.compiler,
- spec.architecture.operating_system)
+ arch.platform_os)
spec.compiler = matches[index].copy()
assert(spec.compiler.concrete)
return True # things changed.