mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-04 15:28:27 +01:00
dvc: stage: print stage status only once
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
+9
-5
@@ -60,13 +60,17 @@ class Stage(object):
|
||||
return True
|
||||
|
||||
def changed(self):
|
||||
ret = False
|
||||
for entry in itertools.chain(self.outs, self.deps):
|
||||
if entry.changed():
|
||||
self.project.logger.debug(u'Dvc file \'{}\' changed'.format(self.relpath))
|
||||
return True
|
||||
else:
|
||||
self.project.logger.debug(u'Dvc file \'{}\' didn\'t change'.format(self.relpath))
|
||||
return False
|
||||
ret = True
|
||||
|
||||
if ret:
|
||||
self.project.logger.debug(u'Dvc file \'{}\' changed'.format(self.relpath))
|
||||
else:
|
||||
self.project.logger.debug(u'Dvc file \'{}\' didn\'t change'.format(self.relpath))
|
||||
|
||||
return ret
|
||||
|
||||
def remove_outs(self):
|
||||
for out in self.outs:
|
||||
|
||||
Reference in New Issue
Block a user