Bugfix: "no cache file" message

This commit is contained in:
Dmitry
2018-01-06 19:06:08 -08:00
parent 24b9d5a337
commit 828970a0c4
+1 -2
View File
@@ -39,7 +39,7 @@ class CmdFsck(CmdBase):
md5 = None
hardlink_md5 = caches.get(file)
hardlink_msg = hardlink_md5 if caches else 'Error - cache file not found!'
hardlink_msg = hardlink_md5 if hardlink_md5 else 'No cache file found'
hardlink_error = '!!!' if hardlink_md5 and md5 and md5 != hardlink_md5 else ''
print(u' Hardlink to cache file: {} {}'.format(hardlink_msg, hardlink_error))
@@ -69,4 +69,3 @@ class CmdFsck(CmdBase):
result[dep.dvc_path].append((stage, dep))
return result