From 3a4e646c76be3b6413380b913496a13c49d0b2de Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Sat, 30 Dec 2017 08:33:36 -0500 Subject: [PATCH] Bug in update process --- check_update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_update.py b/check_update.py index f77bd27d1..9eb7dab5e 100644 --- a/check_update.py +++ b/check_update.py @@ -11,12 +11,12 @@ current_working_directory = os.path.dirname(__file__) def check_and_apply_update(): g = git.cmd.Git(current_working_directory) result = g.pull('origin', branch) - if result != 'Already up-to-date.': + if result.startswith('Already'): + logging.info('No new version of Bazarr available.') + else: #logging.info('Bazarr updated to latest version and need to be restarted.') logging.info(result) updated() - else: - logging.info('No new version of Bazarr available.') def updated(): conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30)