Linux standalone: Use md5sum to shorten paths in .cache/git-annex/locales
authorJoey Hess <joeyh@joeyh.name>
Wed, 4 Mar 2020 17:04:56 +0000 (13:04 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 4 Mar 2020 17:04:56 +0000 (13:04 -0400)
commit88f721549d0703fe9d3cabb9e95cecc04dff51a9
tree09e0fb78150c828959f14494a173419ba102d507
parent4f01a4e2e0b8e037aa342768773ca08bff89c7fe
Linux standalone: Use md5sum to shorten paths in .cache/git-annex/locales

md5sum is part of busybox, so is probably available unless it were compiled
out. If md5sum (or cut for that matter) is not available, it will
still use the whole path to $base, otherwise hash it.

Of course it's possible for md5sum to be available sometimes and not others
on the same system; in such an event the locales would be built twice for
the same bundle. The cleanup code will delete both sets once that
version of the bundle is upgraded.
CHANGELOG
doc/bugs/git-annex_standalone_runshell_locale_cache_fails_on_too-long_filenames.mdwn
standalone/linux/skel/runshell