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

Always purge symlinks #222

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Always purge symlinks #222

merged 2 commits into from
Oct 24, 2024

Conversation

AA-Turner
Copy link
Member

Currently, /3/ is not purged when /3.13/ updates (and the same for /dev/). This is a quick fix, a better solution would either to use rewrite rules in Nginx or to check if the symlink target has been rebuilt.

A

build_docs.py Outdated Show resolved Hide resolved
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@hugovk hugovk merged commit 841689c into python:main Oct 24, 2024
5 checks passed
@hugovk
Copy link
Member

hugovk commented Oct 24, 2024

Thanks!

Comment on lines +1001 to +1002
if link.exists():
link.unlink()
Copy link
Member

Choose a reason for hiding this comment

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

I believe this could be simplified further by replacing these two lines with link.unlink(missing_ok=True).

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.

3 participants