Makes the update of a local database not use /tmp/tldrXXXXXX temp directory, but download the update archive to a temporary place inside a tldr home directory (currently ~/.tldrc/tmp/), which omits painful cross-FS file manipulation.
Why the change?
Makes the local database work on systems where /tmp/ and $HOME are on different partitions. Resolves #95.
How can this be tested?
Remove tldr home folder (~/.tldrc) and run tldr -u
What does it do?
Makes the update of a local database not use
/tmp/tldrXXXXXX
temp directory, but download the update archive to a temporary place inside a tldr home directory (currently~/.tldrc/tmp/
), which omits painful cross-FS file manipulation.Why the change?
Makes the local database work on systems where
/tmp/
and$HOME
are on different partitions. Resolves #95.How can this be tested?
Remove tldr home folder (
~/.tldrc
) and runtldr -u
Where to start code review?
https://github.com/tldr-pages/tldr-c-client/pull/100/commits/c8424d422b9229b7c05b1c061547331ca5cde92a
Relevant tickets?
95
Questions?
C isn't my primary language, so any corrections are welcome.