Browse Source

Change add alternative locations for git.exe on Windows with a log warning.

tags/release_0.25.1
JackDandy 5 years ago
parent
commit
a2fcf436b3
  1. 1
      CHANGES.md
  2. 8
      sickbeard/version_checker.py

1
CHANGES.md

@ -48,6 +48,7 @@
* Change make Py3.9 preparations
* Change anime "Available groups" to display "No groups listed..." when API is fine with no results instead of blank
* Change improve clarity of anime group lists by using terms Allow list and Block list
* Change add alternative locations for git.exe on Windows with a log warning
[develop changelog]

8
sickbeard/version_checker.py

@ -185,6 +185,14 @@ class GitUpdateManager(UpdateManager):
if 'windows' == platform.system().lower():
if main_git != main_git.lower():
alternative_git.append(main_git.lower())
if sickbeard.GIT_PATH:
logger.log(u'git.exe is missing, remove `git_path` from config.ini: %s' % main_git, logger.DEBUG)
if re.search(r' \(x86\)', main_git):
alternative_git.append(re.sub(r' \(x86\)', '', main_git))
else:
alternative_git.append(re.sub('Program Files', 'Program Files (x86)', main_git))
logger.log(
u'Until `git_path` is removed by a config.ini edit, trying: %s' % alternative_git[-1], logger.DEBUG)
if alternative_git:
logger.log(u'Trying known alternative git locations', logger.DEBUG)

Loading…
Cancel
Save