1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04: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): 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()
@ -570,6 +566,10 @@ 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)