If timestamps should be preserved, a tar archive should be used.
Timestamps in directories are very likely to be arbitrary and there's
no point in preserving them. This doesn't impact reproducible builds
as we have SourceDateEpoch= for that.
"cp",
"--recursive",
"--dereference" if dereference else "--no-dereference",
- f"--preserve=mode,timestamps,links{',ownership,xattr' if preserve else ''}",
+ f"--preserve=mode,links{',timestamps,ownership,xattr' if preserve else ''}",
"--reflink=auto",
src, dst,
]