mirror of
https://github.com/SickGear/SickGear.git
synced 2025-03-15 09:07:43 +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):
|
class SourceUpdateManager(UpdateManager):
|
||||||
def __init__(self):
|
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_user = self.get_github_repo_user()
|
||||||
self.github_repo = self.get_github_repo()
|
self.github_repo = self.get_github_repo()
|
||||||
|
|
||||||
|
@ -564,10 +568,6 @@ class SourceUpdateManager(UpdateManager):
|
||||||
if sickbeard.BRANCH == '':
|
if sickbeard.BRANCH == '':
|
||||||
self.branch = self._find_installed_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):
|
def _find_installed_version(self):
|
||||||
installed_path = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
|
installed_path = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
|
||||||
self._cur_commit_hash = self.hash_dir(installed_path)
|
self._cur_commit_hash = self.hash_dir(installed_path)
|
||||||
|
@ -784,4 +784,4 @@ class SourceUpdateManager(UpdateManager):
|
||||||
# split+join normalizes paths on Windows (note the imports)
|
# split+join normalizes paths on Windows (note the imports)
|
||||||
dir_hash[os.path.join(*os.path.split(root))] = self._mktree(f_hash, d_hash)
|
dir_hash[os.path.join(*os.path.split(root))] = self._mktree(f_hash, d_hash)
|
||||||
|
|
||||||
return dir_hash[path]
|
return dir_hash[path]
|
||||||
|
|
Loading…
Reference in a new issue