Commit b1c0b028 authored by Lucas Carvalho's avatar Lucas Carvalho

Removed useless method, since network cache works with SHA256 instead of MD5.

Signed-off-by: default avatarLucas Carvalho <lucas@nexedi.com>
parent 8502df5b
......@@ -21,13 +21,6 @@ import base64
import hashlib
import json
_md5_re = re.compile(r'md5=([a-f0-9]+)')
def _get_md5_from_url(url):
match = _md5_re.search(url)
if match:
return match.group(1)
return None
def _get_hash_from_file(path, hash_object):
"""
......@@ -187,9 +180,6 @@ def fetch_from_network_cache(network_cache, location, tmp, logger=None):
if network_cache in (None, ''):
return None
# Make a id from URL
md5sum = _get_md5_from_url(location)
filename = _get_filename_from_url(location)
path = os.path.join(tmp, filename)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment