Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autobuild/autobuild_tool_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def _install_binary(configured_name, platform, package, config_file, install_dir

# get the package file in the cache, downloading if needed, and verify the hash
# (raises InstallError on failure, so no check is needed)
cachefile = get_package_file(package_name, archive.url, hash_algorithm=(archive.hash_algorithm or 'md5'), expected_hash=archive.hash)
cachefile = get_package_file(package_name, archive.url, hash_algorithm=(archive.hash_algorithm or 'md5'), expected_hash=archive.hash, creds=(archive.creds or None))
if cachefile is None:
raise InstallError("Failed to download package '%s' from '%s'" % (package_name, archive.url))

Expand Down
1 change: 1 addition & 0 deletions autobuild/configfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ class ArchiveDescription(common.Serialized):
# Implementations for various values of hash_algorithm should be found in
# hash_algorithms.py.
def __init__(self, dictionary=None):
self.creds = None
self.format = None
self.hash = None
self.hash_algorithm = None
Expand Down
2 changes: 1 addition & 1 deletion autobuild/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def PackageDescription(name):

@staticmethod
def ArchiveDescription():
return {'format': None, 'hash': None, 'hash_algorithm': None, 'url': None}
return {'creds': None, 'format': None, 'hash': None, 'hash_algorithm': None, 'url': None}

@staticmethod
def BuildConfigurationDescription():
Expand Down