diff options
| author | Casey Dahlin <cdahlin@redhat.com> | 2008-12-29 04:31:07 -0500 |
|---|---|---|
| committer | Casey Dahlin <cdahlin@redhat.com> | 2008-12-29 04:31:07 -0500 |
| commit | 8014a46083608f8ad72bd23e1add5c330196ae36 (patch) | |
| tree | 906ca71e0401ce620964c09da4358ba8a4f42bf3 | |
| parent | f65dad5374be8be499dddb4393acf625b17178be (diff) | |
| download | upstate-8014a46083608f8ad72bd23e1add5c330196ae36.tar.gz upstate-8014a46083608f8ad72bd23e1add5c330196ae36.tar.xz upstate-8014a46083608f8ad72bd23e1add5c330196ae36.zip | |
When getting applicable deps check for nonempty intersection, not superset.
| -rw-r--r-- | statemachine.py | 4 |
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 |
