repro: don't forget to update stage files after reproduction

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2017-12-27 05:31:38 +02:00
parent 4c6d823c34
commit 6b1659798b
2 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -149,10 +149,12 @@ class Project(object):
raise StageNotFoundError(target)
if recursive:
for node in nx.dfs_postorder_nodes(self.graph(), node):
stages[node].reproduce(force=force)
for n in nx.dfs_postorder_nodes(self.graph(), node):
stages[n].reproduce(force=force)
stages[n].dump()
stages[node].reproduce(force=force)
stages[node].dump()
def checkout(self):
for stage in self.stages():
+2 -2
View File
@@ -132,8 +132,8 @@ class Dependency(Output):
state = self.project.state.get(self.path)
if state and state.mtime == self.mtime():
md5 = state.md5
msg = '{} using md5 from state file for dependency'
self.project.logger.debug(msg.format(self.path))
msg = '{} using md5 {} from state file for dependency'
self.project.logger.debug(msg.format(self.path, md5))
super(Dependency, self).update(md5=md5)