Richard a1478080b1 Clean up existing install before extracting .mpk (#55)
install_mpk() would fail with EEXIST if the destination folder already
existed from a previous (possibly partial) install, or if a dangling
symlink occupied the path (e.g. a dev symlink whose target was removed).

Before extracting, now remove the destination if it is:
- A real directory (via shutil.rmtree)
- A regular file (via os.remove)
- A symlink, including broken ones (via os.remove as a fallback)

This enables clean reinstalls, updates, and recovery from failed
installs.

Co-authored-by: Richard Taylor <RT@MacBookPro.lan>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 07:42:04 +01:00
2026-02-16 16:12:06 +01:00
2025-11-20 22:22:55 +01:00
2026-02-08 19:42:43 +01:00
2026-02-20 15:36:54 +01:00
2026-02-17 21:32:40 +01:00
2026-02-12 12:46:12 +01:00
2025-11-29 13:04:52 +01:00
2026-02-13 10:58:58 +01:00
2025-06-15 09:09:33 +02:00
2025-10-24 17:57:04 +02:00
2026-02-13 13:06:03 +01:00
S
Description
No description provided
Readme MIT 4.2 MiB
Languages
Python 75.3%
C 11.5%
JavaScript 7.2%
HTML 3.5%
Shell 1.4%
Other 1%