diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-16 11:53:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-16 12:52:09 +0300 |
commit | a059f072741d671ad882c44e93f6f62bb38f27d8 (patch) | |
tree | 00ebbff11347ce71df6fc034d338ce29913fd9bb /source/blender/editors/space_view3d | |
parent | 36814ddc94b56a66675b854bc0d7485828ddcd31 (diff) |
Fix add-on & app-template installation logic for overwriting modules
The logic to remove one Python module before installing another
only worked in simple cases where a file replaced a file.
- Installing a single file add-on over a Python package with the same
name caused an error as the directory isn't empty.
- Removing existing module directories from the zip-file did nothing
as the directories from the zip-file that end with a slash were
compared with directories from `os.listdir` that don't.
- `module_filesystem_remove` assumed ZipFile.namelist() was a list of
files in the root of the zip-file when it's a list of all files.
While I couldn't find any bugs caused by this, it performed checks
that don't make sense, comparing files at different depths of the
file-system.
Diffstat (limited to 'source/blender/editors/space_view3d')
0 files changed, 0 insertions, 0 deletions