summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Wynne III <wynnejr@gpujake.com>2016-10-11 04:30:11 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2016-10-11 01:30:11 -0700
commitbd61a365875e6247663a43832e609cb5e4c91572 (patch)
tree54ed8b4391af1f789ac78c5704bead64a7b19d02
parentb7a612dcdfab94b2902677b483e2f2c89c1a790a (diff)
downloadspack-bd61a365875e6247663a43832e609cb5e4c91572.tar.gz
spack-bd61a365875e6247663a43832e609cb5e4c91572.tar.bz2
spack-bd61a365875e6247663a43832e609cb5e4c91572.tar.xz
spack-bd61a365875e6247663a43832e609cb5e4c91572.zip
Fixed set operation from undefined += to a union (#1963)
Fixed flake8 issues
-rw-r--r--lib/spack/spack/provider_index.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/provider_index.py b/lib/spack/spack/provider_index.py
index 2be48b43c1..d7f2379486 100644
--- a/lib/spack/spack/provider_index.py
+++ b/lib/spack/spack/provider_index.py
@@ -232,7 +232,8 @@ class ProviderIndex(object):
spdict[provided_spec] = opdict[provided_spec]
continue
- spdict[provided_spec] += opdict[provided_spec]
+ spdict[provided_spec] = \
+ spdict[provided_spec].union(opdict[provided_spec])
def remove_provider(self, pkg_name):
"""Remove a provider from the ProviderIndex."""