updatecheck: fix GitHub auth

The script was accessing nonexistent vars, so auth wasn't working. Mostly not
noticable until you hit the API's unauthed request rate limit.
This commit is contained in:
Greg Pfeil 2022-10-20 10:48:02 -06:00
parent ebea82c96c
commit 9c4bf36c45
1 changed files with 3 additions and 4 deletions

View File

@ -3,8 +3,7 @@
# This script checks for updates to zcashd's dependencies. # This script checks for updates to zcashd's dependencies.
# #
# The SOURCE_ROOT constant specifies the location of the zcashd codebase to # The SOURCE_ROOT constant specifies the location of the zcashd codebase to
# check, and the GITHUB_API_* constants specify a personal access token for the # check.
# GitHub API, which need not have any special privileges.
# #
# All dependencies must be specified inside the get_dependency_list() function # All dependencies must be specified inside the get_dependency_list() function
# below. A dependency is specified by: # below. A dependency is specified by:
@ -126,10 +125,10 @@ class GitHubToken:
sys.exit(1) sys.exit(1)
def user(self): def user(self):
return self.user return self._user
def password(self): def password(self):
return self.password return self._password
class Version(list): class Version(list):
def __init__(self, version_tuple): def __init__(self, version_tuple):