mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-22 15:54:26 +00:00
Fixed upgrade process to properly upgrade bazarr.py when it's updated. #2456
This commit is contained in:
parent
0322f22a51
commit
a39d874d3b
1 changed files with 1 additions and 2 deletions
|
@ -160,8 +160,7 @@ def apply_update():
|
||||||
'BAZARR was unable to delete the previous build directory during upgrade process.')
|
'BAZARR was unable to delete the previous build directory during upgrade process.')
|
||||||
|
|
||||||
for file in archive.namelist():
|
for file in archive.namelist():
|
||||||
if file.startswith(zip_root_directory) and file != zip_root_directory and not \
|
if file.startswith(zip_root_directory) and file != zip_root_directory:
|
||||||
file.endswith('bazarr.py'):
|
|
||||||
file_path = os.path.join(bazarr_dir, file[len(zip_root_directory):])
|
file_path = os.path.join(bazarr_dir, file[len(zip_root_directory):])
|
||||||
parent_dir = os.path.dirname(file_path)
|
parent_dir = os.path.dirname(file_path)
|
||||||
os.makedirs(parent_dir, exist_ok=True)
|
os.makedirs(parent_dir, exist_ok=True)
|
||||||
|
|
Loading…
Reference in a new issue