Preserve existing file timestamps while validating copied contents
这个提交包含在:
1 父节点
1827628a93
当前提交
ae3ed9c3d7
3 个文件已更改
+31
-26
没有与搜索条件相匹配的文件
@@ -94,7 +94,9 @@ def main():
|
||||
mismatch_log=str(job / 'existing-check.log'))
|
||||
return
|
||||
save('verifying_tree')
|
||||
result = run_to_log(['rsync', '-rltHni', '--out-format=%i %n%L', '--protect-args',
|
||||
# Existing files keep their original metadata. Their contents were fully
|
||||
# checksum-checked above, so a different mtime alone is not a copy failure.
|
||||
result = run_to_log(['rsync', '-rlHni', '--size-only', '--out-format=%i %n%L', '--protect-args',
|
||||
*source_args, str(destination) + '/'], 'tree-check.log')
|
||||
if result or (job / 'tree-check.log').read_text().strip():
|
||||
raise RuntimeError('Final directory comparison found differences; see tree-check.log.')
|
||||
|
||||
在新工单中引用
屏蔽一个用户