mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
Add StreamLookasideCache specific get_download_url method
This commit is contained in:
parent
5fd982bf00
commit
5e8e77dfad
1 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,12 @@ class StreamLookasideCache(CGILookasideCache):
|
||||||
hashtype, download_url, upload_url,
|
hashtype, download_url, upload_url,
|
||||||
client_cert=client_cert, ca_cert=ca_cert)
|
client_cert=client_cert, ca_cert=ca_cert)
|
||||||
|
|
||||||
|
def get_download_url(self, name, filename, hash, hashtype=None, **kwargs):
|
||||||
|
_name = utils.get_repo_name(name) if is_dist_git(os.getcwd()) else name
|
||||||
|
|
||||||
|
return super(StreamLookasideCache, self).get_download_url(
|
||||||
|
_name, filename, hash, hashtype=hashtype, **kwargs)
|
||||||
|
|
||||||
def remote_file_exists(self, name, filename, hashstr):
|
def remote_file_exists(self, name, filename, hashstr):
|
||||||
"""
|
"""
|
||||||
Check if a remote file exists.
|
Check if a remote file exists.
|
||||||
|
|
Loading…
Add table
Reference in a new issue