Expand description
Shared download logic between HttpRegistry
and RemoteRegistry
.
Constantsยง
- CHECKSU
M_ ๐TEMPLATE - CRAT
E_ ๐TEMPLATE - PREFI
X_ ๐TEMPLATE - VERSIO
N_ ๐TEMPLATE
Functionsยง
- download ๐Checks if
pkg
is downloaded and ready under the directory atcache_path
. If not, returns a URL to download it from. - finish_
download ๐Verifies the integrity ofdata
withchecksum
and persists it under the directory atcache_path
. - is_
crate_ ๐downloaded Checks if a tarball ofpkg
has been already downloaded under the directory atcache_path
.