mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fix for AttributeError in SourceUpdateManager
This commit is contained in:
parent
318379522b
commit
de8adb24d0
@ -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)
|
||||
@ -784,4 +784,4 @@ class SourceUpdateManager(UpdateManager):
|
||||
# split+join normalizes paths on Windows (note the imports)
|
||||
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 New Issue
Block a user