Skip to content

Commit

Permalink
Merge pull request iterative#470 from efiop/master
Browse files Browse the repository at this point in the history
output: don't forget to check inode when using cached state for changed() method
  • Loading branch information
efiop authored Feb 15, 2018
2 parents f46af79 + 3624019 commit 5b588d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _changed_md5(self):
return True

state = self.project.state.get(self.path)
if state and state.mtime == self.mtime():
if state and state.mtime == self.mtime() and state.inode == self.inode():
md5 = state.md5
else:
md5 = self.compute_md5()
Expand Down
2 changes: 2 additions & 0 deletions dvc/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def changed(self):
if entry.changed():
self.project.logger.debug("{} changed".format(self.path))
return True
else:
self.project.logger.debug("{} didn't change".format(self.path))
return False

def remove_outs(self):
Expand Down

0 comments on commit 5b588d9

Please sign in to comment.