mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-07 07:18:27 +01:00
Merge pull request #560 from efiop/master
dvc: print warning when corrupted cache is detected
This commit is contained in:
+1
-1
@@ -165,7 +165,7 @@ class Output(Dependency):
|
||||
def _changed_cache(self, cache):
|
||||
md5 = self.project.state.update(cache)
|
||||
if md5 != self.project.cache.path_to_md5(cache):
|
||||
self.project.logger.debug('Corrupted cache file {}'.format(cache))
|
||||
self.project.logger.warn('Corrupted cache file {}'.format(os.path.relpath(cache)))
|
||||
os.unlink(cache)
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user