Expand description
Shared download logic between HttpRegistry and RemoteRegistry.
Constantsยง
- CHECKSUM_
TEMPLATE ๐ - CRATE_
TEMPLATE ๐ - PREFIX_
TEMPLATE ๐ - VERSION_
TEMPLATE ๐
Functionsยง
- download ๐Checks if
pkgis downloaded and ready under the directory atcache_path. If not, returns a URL to download it from. - finish_
download ๐Verifies the integrity ofdatawithchecksumand persists it under the directory atcache_path. - is_
crate_ ๐downloaded Checks if a tarball ofpkghas been already downloaded under the directory atcache_path.