mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 02:23:38 +00:00
Fix for AttributeError in SourceUpdateManager
This commit is contained in:
parent
318379522b
commit
de8adb24d0
1 changed files with 5 additions and 5 deletions
|
@ -557,6 +557,10 @@ class GitUpdateManager(UpdateManager):
|
|||
|
||||
class SourceUpdateManager(UpdateManager):
|
||||
def __init__(self):
|
||||
self._cur_commit_hash = None
|
||||
self._newest_commit_hash = None
|
||||
self._num_commits_behind = 0
|
||||
|
||||
self.github_repo_user = self.get_github_repo_user()
|
||||
self.github_repo = self.get_github_repo()
|
||||
|
||||
|
@ -564,10 +568,6 @@ class SourceUpdateManager(UpdateManager):
|
|||
if sickbeard.BRANCH == '':
|
||||
self.branch = self._find_installed_branch()
|
||||
|
||||
self._cur_commit_hash = None
|
||||
self._newest_commit_hash = None
|
||||
self._num_commits_behind = 0
|
||||
|
||||
def _find_installed_version(self):
|
||||
installed_path = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
|
||||
self._cur_commit_hash = self.hash_dir(installed_path)
|
||||
|
|
Loading…
Reference in a new issue