Fix bug that prevented linux standalone bundle from working on a fresh install
authorJoey Hess <joeyh@joeyh.name>
Fri, 23 Oct 2020 16:18:52 +0000 (12:18 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 23 Oct 2020 16:19:40 +0000 (12:19 -0400)
Bug was introduced in version 8.20201007, lost a necessary mkdir.

This commit was sponsored by Noam Kremen on Patreon.

CHANGELOG
doc/bugs/git_annex_init_fails/comment_2_7c287bc03f8aa7fe40afe71f8f377593._comment [new file with mode: 0644]
standalone/linux/skel/runshell

index 0d585c1ae530ec89a101dfb986436dc3a0e84a55..213d07c42fc1f265053ef2932ff252d57b9c9374 100644 (file)
--- 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 (file)
index 0000000..284a1d4
--- /dev/null
@@ -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.
+"""]]
index 4daf57dae718423aca0bd47f1bb80b997173db72..4413be9853e5ba93531dc04f5fc0d613ba8a64c7 100755 (executable)
@@ -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