avocado.utils.download: Extend get_file API
Add the possibility of using caching in the get_file
API -> If the dst already exists, we can compare its
file hash (SHA1, MD5, among others) with an expected
hash. If the hashes match, don't try to retrieve the
src again, just return.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
Showing
想要评论请 注册 或 登录