Skip to content

Commit

Permalink
Merge pull request #6 from guewen/fix-noop
Browse files Browse the repository at this point in the history
Fix noop operations not considered as such
  • Loading branch information
guewen authored Jul 26, 2016
2 parents 2159f12 + 2caac33 commit 1c7ad72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Unreleased
operations. It enables line buffering and interactivity for pdb in the
children processes.

**Fixes**

- Noop operations are really considered as such


0.3.3 (2016-07-12)
++++++++++++++++++
Expand Down
8 changes: 4 additions & 4 deletions marabunta/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def is_processed(self, db_versions):
return self.number in (v.number for v in db_versions if v.date_done)

def is_noop(self):
has_operations = (mode.pre_operations or mode.post_operations
for mode in self._version_modes.values())
has_upgrade_addons = (mode.upgrade_addons or mode.remove_addons
for mode in self._version_modes.values())
has_operations = [mode.pre_operations or mode.post_operations
for mode in self._version_modes.values()]
has_upgrade_addons = [mode.upgrade_addons or mode.remove_addons
for mode in self._version_modes.values()]
noop = (not has_operations and not has_upgrade_addons)
return noop

Expand Down

0 comments on commit 1c7ad72

Please sign in to comment.