summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/__init__.py2
-rw-r--r--lib/spack/spack/spec.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/spack/spack/__init__.py b/lib/spack/spack/__init__.py
index c7a155597f..8c6e0ba527 100644
--- a/lib/spack/spack/__init__.py
+++ b/lib/spack/spack/__init__.py
@@ -105,7 +105,7 @@ concretizer = DefaultConcretizer()
# Version information
from spack.version import Version
-spack_version = Version("0.9")
+spack_version = Version("0.9.1")
#
# Executables used by Spack
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 470353c4f6..3f1fc115b8 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -717,8 +717,9 @@ class Spec(object):
else:
spec.compiler = CompilerSpec.from_dict(node)
- for name, enabled in node['variants'].items():
- spec.variants[name] = VariantSpec(name, enabled)
+ if 'variants' in node:
+ for name, enabled in node['variants'].items():
+ spec.variants[name] = VariantSpec(name, enabled)
return spec