diff options
author | morpheus65535 <[email protected]> | 2024-04-18 22:34:10 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-04-18 22:34:10 -0400 |
commit | a39d874d3b44d8c3a4f4f030fd4c2c9ac4c20cf5 (patch) | |
tree | 8899475da75026be25adbc3256ca12e3b1667673 | |
parent | 0322f22a51f02dcd10e397f0804fbd54dae18898 (diff) | |
download | bazarr-a39d874d3b44d8c3a4f4f030fd4c2c9ac4c20cf5.tar.gz bazarr-a39d874d3b44d8c3a4f4f030fd4c2c9ac4c20cf5.zip |
Fixed upgrade process to properly upgrade bazarr.py when it's updated. #2456v1.4.3-beta.21
-rw-r--r-- | bazarr/app/check_update.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bazarr/app/check_update.py b/bazarr/app/check_update.py index 327294324..c5bfdeb68 100644 --- a/bazarr/app/check_update.py +++ b/bazarr/app/check_update.py @@ -160,8 +160,7 @@ def apply_update(): 'BAZARR was unable to delete the previous build directory during upgrade process.') for file in archive.namelist(): - if file.startswith(zip_root_directory) and file != zip_root_directory and not \ - file.endswith('bazarr.py'): + if file.startswith(zip_root_directory) and file != zip_root_directory: file_path = os.path.join(bazarr_dir, file[len(zip_root_directory):]) parent_dir = os.path.dirname(file_path) os.makedirs(parent_dir, exist_ok=True) |