mirror of
https://github.com/SickGear/SickGear.git
synced 2025-03-15 09:07:43 +00:00
Second attempt to fix zip updating
This commit is contained in:
parent
0242e421cc
commit
3f4f2e37b8
1 changed files with 5 additions and 5 deletions
|
@ -577,17 +577,17 @@ class SourceUpdateManager(UpdateManager):
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
def need_update(self):
|
def need_update(self):
|
||||||
|
# need this to run first to set self._newest_commit_hash
|
||||||
if self.branch != self._find_installed_branch():
|
|
||||||
logger.log(u"Branch checkout: " + self._find_installed_branch() + "->" + self.branch, logger.DEBUG)
|
|
||||||
return True
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._check_github_for_update()
|
self._check_github_for_update()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.log(u"Unable to contact github, can't check for update: " + repr(e), logger.ERROR)
|
logger.log(u"Unable to contact github, can't check for update: " + repr(e), logger.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if self.branch != self._find_installed_branch():
|
||||||
|
logger.log(u"Branch checkout: " + self._find_installed_branch() + "->" + self.branch, logger.DEBUG)
|
||||||
|
return True
|
||||||
|
|
||||||
if not self._cur_commit_hash or self._num_commits_behind > 0:
|
if not self._cur_commit_hash or self._num_commits_behind > 0:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue