Modify ↓
Opened 17 years ago
Closed 17 years ago
#211 closed defect (fixed)
[PATCH] Fix rmtree on Windows
Reported by: | doug.patterson | Owned by: | cmlenz |
---|---|---|---|
Priority: | major | Milestone: | 0.6 |
Component: | Build slave | Version: | dev |
Keywords: | rmtree permissions | Cc: | |
Operating System: | Windows |
Description
shutil.rmtree is used to delete the build folder. After a checkout the build folder contains .svn folders that contain read-only files. On Windows Python requires write permission to delete a file or folder. The solution is to use rmtree's onerror callback to chmod files that cannot be deleted then try again.
This should fix the root cause of #183. Thanks to thomas_mueller_ffb for the link to the solution.
Attachments (1)
Change History (3)
Changed 17 years ago by doug.patterson
comment:1 Changed 17 years ago by bitten@…
comment:2 Changed 17 years ago by wbell
- Resolution set to fixed
- Status changed from new to closed
Closed via [521]
Note: See
TracTickets for help on using
tickets.
Patch for rmtree in slave.py