summaryrefslogtreecommitdiffstats
path: root/statemachine.py
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-12-29 04:31:07 -0500
committerCasey Dahlin <cdahlin@redhat.com>2008-12-29 04:31:07 -0500
commit8014a46083608f8ad72bd23e1add5c330196ae36 (patch)
tree906ca71e0401ce620964c09da4358ba8a4f42bf3 /statemachine.py
parentf65dad5374be8be499dddb4393acf625b17178be (diff)
downloadupstate-8014a46083608f8ad72bd23e1add5c330196ae36.tar.gz
upstate-8014a46083608f8ad72bd23e1add5c330196ae36.tar.xz
upstate-8014a46083608f8ad72bd23e1add5c330196ae36.zip
When getting applicable deps check for nonempty intersection, not superset.
Diffstat (limited to 'statemachine.py')
-rw-r--r--statemachine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/statemachine.py b/statemachine.py
index bb867ea..d6721df 100644
--- a/statemachine.py
+++ b/statemachine.py
@@ -99,8 +99,8 @@ class StateMachine:
"""
retval = []
for (x, y) in self.deps:
- if x.superset_of(cat):
- un = cat.intersect(x)
+ un = cat.intersect(x)
+ if un != None:
retval.append((un, y.fill(un.args)))
return retval