Blender Git Loki

Git Commits -> Revision a059f07

Revision a059f07 by Campbell Barton (master)
February 16, 2021, 09:52 (GMT)
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.

Commit Details:

Full Hash: a059f072741d671ad882c44e93f6f62bb38f27d8
Parent Commit: 36814dd
Lines Changed: +33, -10

1 Modified Path:

/release/scripts/startup/bl_operators/userpref.py (+33, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021