From 0736383e98395a09cedb779e6f9b6545d05ae29d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 23 Oct 2020 12:18:52 -0400 Subject: [PATCH] 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. --- CHANGELOG | 2 ++ .../comment_2_7c287bc03f8aa7fe40afe71f8f377593._comment | 9 +++++++++ standalone/linux/skel/runshell | 4 ++++ 3 files changed, 15 insertions(+) create mode 100644 doc/bugs/git_annex_init_fails/comment_2_7c287bc03f8aa7fe40afe71f8f377593._comment diff --git a/CHANGELOG b/CHANGELOG index 0d585c1ae5..213d07c42f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/doc/bugs/git_annex_init_fails/comment_2_7c287bc03f8aa7fe40afe71f8f377593._comment b/doc/bugs/git_annex_init_fails/comment_2_7c287bc03f8aa7fe40afe71f8f377593._comment new file mode 100644 index 0000000000..284a1d48f2 --- /dev/null +++ b/doc/bugs/git_annex_init_fails/comment_2_7c287bc03f8aa7fe40afe71f8f377593._comment @@ -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. +"""]] diff --git a/standalone/linux/skel/runshell b/standalone/linux/skel/runshell index 4daf57dae7..4413be9853 100755 --- a/standalone/linux/skel/runshell +++ b/standalone/linux/skel/runshell @@ -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