Fix bug that prevented linux standalone bundle from working on a fresh install

Bug was introduced in version 8.20201007, lost a necessary mkdir.

This commit was sponsored by Noam Kremen on Patreon.
This commit is contained in:
Joey Hess 2020-10-23 12:18:52 -04:00
parent 02d3e58610
commit 0736383e98
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 15 additions and 0 deletions

View file

@ -1,5 +1,7 @@
git-annex (8.20201008) UNRELEASED; urgency=medium
* Fix bug that prevented linux standalone bundle from working on a fresh
install.
* Fix build on Windows with network-3.
* Fix a memory leak introduced in the last release.
* add, import: Fix a reversion in 7.20191009 that broke handling

View file

@ -0,0 +1,9 @@
[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2020-10-23T16:15:42Z"
content="""
I've fixed this for the next release. It was simply omitting creating the
/home/user/.cache/git-annex/locales/ directory, so as a workaround you can
create that directory.
"""]]

View file

@ -151,6 +151,10 @@ if [ -z "${LOCPATH+set}" ] && [ -z "$GIT_ANNEX_PACKAGE_INSTALL" ]; then
done
if [ ! -d "$LOCPATH" ]; then
if ! mkdir -p "$HOME/.cache/git-annex/locales"; then
echo "Unable to write to $HOME/.cache/git-annex/locales; can't continue!" >&2
exit 1
fi
locpathtmp="$HOME/.cache/git-annex/locales.tmp/$locpathbase.$$"
if ! mkdir -p "$locpathtmp"; then
echo "Unable to write to $locpathtmp; can't continue!" >&2