summaryrefslogtreecommitdiff
path: root/debian/NEWS
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-05-27 15:58:32 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-05-27 15:58:32 -0400
commit70fbb08468ba893812e5c78d60984c91aff27fdd (patch)
tree0f67926da38687096c084acb5587aecee02b7556 /debian/NEWS
parent53414931906dd5307f16601566cf8e860f7ebe2a (diff)
if external hash command fails for any reason, fall back to internal hashing
This way, if a system's sha1sum etc is broken, it will be tried if git-annex was built to use it, but at least it will fall back to using internal hashing when it fails. A side benefit of this is that hashFile consistently throws an IOError if the file is unable to be read. In particular, if the disk is failing with IO errors, and external hash command is used, it used to throw a user error with the error message from externalSHA. Now, the external hash command will fail, that message will be printed as a warning, and it'll fall back to the internal hash command. If the disk IO error is not intermittent, it will re-occur, and so an IOError will be thrown. Of course, this can mean it reads a file twice, but only in edge cases.
Diffstat (limited to 'debian/NEWS')
0 files changed, 0 insertions, 0 deletions