1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

More fixes for source code updating

This commit is contained in:
echel0n 2014-08-07 23:30:56 -07:00
parent f9ababe7cb
commit 1bf47900df

View File

@ -559,10 +559,6 @@ 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()
@ -570,6 +566,10 @@ 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)