summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGregory Becker <becker33@llnl.gov>2016-05-11 10:51:52 -0700
committerGregory Becker <becker33@llnl.gov>2016-05-11 10:51:52 -0700
commit0b5836cfce4e701ec9487654fca0eabc905d9092 (patch)
tree6b0de9ca75d2885ea9a38d6f705ad4e6e9cc6d30 /lib
parentc6ac709d70adf9d6ecf5b840411bf5e3e4ba1523 (diff)
downloadspack-0b5836cfce4e701ec9487654fca0eabc905d9092.tar.gz
spack-0b5836cfce4e701ec9487654fca0eabc905d9092.tar.bz2
spack-0b5836cfce4e701ec9487654fca0eabc905d9092.tar.xz
spack-0b5836cfce4e701ec9487654fca0eabc905d9092.zip
Fixed flipped conditional in satisfies
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/spec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 547f006e7a..f94aa3ca4a 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -1518,7 +1518,7 @@ class Spec(object):
return False
# Otherwise, first thing we care about is whether the name matches
- if self.name != other.name and (not self.name) and (not other.name):
+ if self.name != other.name and self.name and other.name:
return False
# namespaces either match, or other doesn't require one.