teknium1
eb7e862032
fix(pm): confine the read-only retry to Windows unlink/rmdir failures
...
Review of #131847 : the retry ran for every rmtree failure on every OS.
On POSIX an unreadable directory hands the callback os.open, and
func(path) raised TypeError (missing flags), which escaped the OSError
set-aside path and failed an install that had already published. And
os.chmod followed a symlink inside an unwritable directory, rewriting
the mode of a file outside the tree to 0200.
The retry now only fires for a PermissionError from os.unlink/os.rmdir
on Windows, and clears the link's own attribute where chmod can follow
links; everything else raises as plain rmtree does.
2026-10-03 01:11:10 -07:00
..
2026-10-02 18:43:30 -04:00
2026-10-02 18:43:30 -04:00
2026-10-02 18:43:30 -04:00
2026-10-02 18:15:08 -04:00
2026-10-02 18:15:08 -04:00
2026-09-25 11:19:18 +10:00
2026-09-21 19:18:15 -04:00
2026-09-28 02:00:41 -07:00
2026-09-24 10:11:10 -04:00
2026-09-24 14:08:21 -04:00
2026-09-24 14:08:21 -04:00
2026-09-21 18:54:55 -04:00
2026-09-28 06:42:00 -07:00
2026-10-02 18:43:30 -04:00
2026-09-24 22:12:39 -04:00
2026-09-28 00:51:32 +05:30
2026-09-24 11:50:30 -04:00
2026-10-03 01:11:10 -07:00
2026-09-24 14:23:48 -04:00
2026-09-27 19:18:58 -07:00
2026-09-23 13:17:55 -04:00
2026-09-28 06:42:00 -07:00
2026-09-28 10:11:33 -07:00
2026-09-21 19:13:18 -04:00
2026-09-25 22:07:48 -04:00
2026-09-24 02:03:59 -04:00
2026-09-25 09:24:18 +08:00
2026-09-24 11:50:30 -04:00
2026-09-29 03:28:46 +05:30
2026-09-24 02:23:44 -04:00
2026-09-24 10:53:27 -04:00
2026-09-24 14:08:21 -04:00
2026-09-25 00:00:09 -04:00
2026-09-24 02:03:59 -04:00
2026-10-03 01:11:10 -07:00
2026-09-27 03:24:39 -07:00
2026-09-24 14:23:48 -04:00
2026-09-24 15:56:25 -04:00
2026-09-27 02:55:39 -07:00
2026-09-24 23:40:17 -04:00
2026-09-24 11:21:47 -04:00
2026-09-24 10:53:27 -04:00
2026-09-24 09:20:50 -04:00
2026-09-28 04:44:29 -07:00
2026-09-28 04:44:29 -07:00
2026-09-22 00:18:07 -04:00
2026-09-27 02:55:05 -07:00
2026-09-29 17:29:05 +00:00
2026-09-24 02:03:59 -04:00
2026-09-24 02:03:59 -04:00
2026-09-24 12:16:33 -04:00
2026-09-29 20:57:51 -05:00
2026-09-27 22:30:55 -07:00
2026-09-24 14:08:21 -04:00
2026-09-28 02:04:08 +05:30
2026-09-24 14:08:03 -04:00
2026-09-27 02:55:39 -07:00
2026-09-24 14:08:21 -04:00
2026-09-28 00:51:32 +05:30
2026-09-24 10:42:43 -04:00
2026-09-21 18:44:19 -04:00
2026-10-02 19:37:27 -04:00
2026-09-24 14:08:21 -04:00
2026-09-24 14:08:21 -04:00
2026-09-27 02:54:35 -07:00
2026-09-23 15:26:34 -04:00