diff options
Diffstat (limited to 'lib/spack/spack/report.py')
-rw-r--r-- | lib/spack/spack/report.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/spack/spack/report.py b/lib/spack/spack/report.py index a31c011fc4..c8975a8f77 100644 --- a/lib/spack/spack/report.py +++ b/lib/spack/spack/report.py @@ -112,8 +112,7 @@ class InfoCollector(object): # Check which specs are already installed and mark them as skipped # only for install_task if self.do_fn == '_install_task': - for dep in filter(lambda x: x.package.installed, - input_spec.traverse()): + for dep in filter(lambda x: x.installed, input_spec.traverse()): package = { 'name': dep.name, 'id': dep.dag_hash(), @@ -140,7 +139,7 @@ class InfoCollector(object): raise Exception # We accounted before for what is already installed - installed_already = pkg.installed + installed_already = pkg.spec.installed package = { 'name': pkg.name, |