diff options
author | Casey Dahlin <cdahlin@redhat.com> | 2009-01-05 06:11:19 -0500 |
---|---|---|
committer | Casey Dahlin <cdahlin@redhat.com> | 2009-01-05 06:11:19 -0500 |
commit | 628076684eae420a03426fbfb2218d501884e672 (patch) | |
tree | 02a4c19e37a5d9a8ddaacbf9ac4e313497e60c2f /statemachine.py | |
parent | 8e387fad57115e697ec406570bb6b55e1dcb0809 (diff) | |
download | upstate-628076684eae420a03426fbfb2218d501884e672.tar.gz upstate-628076684eae420a03426fbfb2218d501884e672.tar.xz upstate-628076684eae420a03426fbfb2218d501884e672.zip |
Correctly handle starting of Categories that are supersets of running categories
Diffstat (limited to 'statemachine.py')
-rw-r--r-- | statemachine.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/statemachine.py b/statemachine.py index 609da17..41f4570 100644 --- a/statemachine.py +++ b/statemachine.py @@ -76,6 +76,10 @@ class StateMachine: for x in self.up: if cat.subset_of(x): return + if x.subset_of(cat): + self.up.remove(x) + self.up.add(cat) + return self.up.add(cat) def bring_down(self, cat): |