Revert "fall back to /tmp for LOCPATH if HOME does not exist or not writable"
This reverts commit f991c8c526
.
On second thought, this makes it unbearably slow and leaves far too much
cruft behind.
This commit is contained in:
parent
f991c8c526
commit
eb08deefa5
1 changed files with 0 additions and 7 deletions
|
@ -126,13 +126,6 @@ unset LD_PRELOAD
|
|||
ORIG_LOCPATH="$LOCPATH"
|
||||
export ORIG_LOCPATH
|
||||
LOCPATH="$HOME/.cache/git-annex/locales/$(echo "$base" | tr / _ )"
|
||||
if ! mkdir -p "$LOCPATH" 2>/dev/null; then
|
||||
tlocpath=$(mktemp -d -p /tmp annexlocalesXXXXXXXXX 2>/dev/null || true)
|
||||
if [ -z "$tlocpath" ]; then
|
||||
tlocpath="/tmp/annexlocales.$$"
|
||||
fi
|
||||
LOCPATH="$tlocpath/locales/$(echo "$base" | tr / _ )"
|
||||
fi
|
||||
export LOCPATH
|
||||
|
||||
# Clean up locale caches when their standalone bundle no longer exists.
|
||||
|
|
Loading…
Add table
Reference in a new issue