Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the way update_localdb() works #100

Merged
merged 6 commits into from
Aug 20, 2023
Merged

Conversation

ar7eniyan
Copy link
Contributor

@ar7eniyan ar7eniyan commented Apr 12, 2023

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 run tldr -u

Where to start code review?

c8424d4

Relevant tickets?

#95

Questions?

C isn't my primary language, so any corrections are welcome.

@ar7eniyan
Copy link
Contributor Author

Is there any maintainer to review the PR?

@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Hi all! This thread has not had any recent activity.
Are there any updates? Thanks!

@github-actions github-actions bot removed the waiting label Jun 20, 2023
@kbdharun kbdharun requested a review from SethFalco June 22, 2023 03:52
Copy link
Member

@SethFalco SethFalco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm no C expert, but this looks good to me overall. Also tested it and works flawlessly.
I've left a few comments, but all of them are subjective. Anyone is welcome to dispute them.

C isn't my primary language

Nice job btw! 🎉

src/local.c Outdated Show resolved Hide resolved
src/local.c Outdated Show resolved Hide resolved
@kbdharun kbdharun requested a review from SethFalco July 11, 2023 14:56
@kbdharun kbdharun requested a review from MasterOdin July 11, 2023 15:36
@kbdharun kbdharun merged commit 3477edf into tldr-pages:main Aug 20, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Could Not Rename: ... to ...
4 participants