summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Josef Scheibel <scheibel1@llnl.gov>2018-05-18 16:25:09 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2018-11-09 00:31:24 -0800
commit7f224b616de2ecbf2df645dcdf58efd2a3a0be9a (patch)
tree4eb5e33509a9b6f9cc41123930e54197c1cb0c50 /lib
parentacdb391931d0c074ab2b6656163639bb04c4b1c4 (diff)
downloadspack-7f224b616de2ecbf2df645dcdf58efd2a3a0be9a.tar.gz
spack-7f224b616de2ecbf2df645dcdf58efd2a3a0be9a.tar.bz2
spack-7f224b616de2ecbf2df645dcdf58efd2a3a0be9a.tar.xz
spack-7f224b616de2ecbf2df645dcdf58efd2a3a0be9a.zip
specs: _concrete should never be cleared when copying Specs
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/spec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 39dad67d2c..de00a3dd5b 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -2709,17 +2709,17 @@ class Spec(object):
deptypes = deps
self._dup_deps(other, deptypes, caches)
+ self._concrete = other._concrete
+
if caches:
self._hash = other._hash
self._cmp_key_cache = other._cmp_key_cache
self._normal = other._normal
- self._concrete = other._concrete
self._full_hash = other._full_hash
else:
self._hash = None
self._cmp_key_cache = None
self._normal = False
- self._concrete = False
self._full_hash = None
return changed