Skip to content

nightswatcher: fix some cleanup mistakes - #189

Merged
Frenzie merged 2 commits into
koreader:masterfrom
Frenzie:cleanup
Oct 9, 2026
Merged

Frenzie merged 2 commits into
koreader:masterfrom
Frenzie:cleanup

Conversation

@Frenzie

@Frenzie Frenzie commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

This change is Reviewable

Comment on lines 173 to 174
if link.is_symlink() or link.exists():
link.unlink()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if link.is_symlink() or link.exists():
link.unlink()
link.unlink(missing_ok=True)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks, right.

Accidentally introduced a requirement that it exists in migration of initial poc from weeks or months ago to GitHub monitor, but it doesn't for older files.

Also make sure cleanup runs on nightlies, not just releases.

Deal with dangling links, should there be any.
@Frenzie
Frenzie merged commit 5a7e306 into koreader:master Oct 9, 2026
5 checks passed
@Frenzie
Frenzie deleted the cleanup branch October 9, 2026 16:52
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.

2 participants