WIP #64: make gcc-armhf lazy-reproducible, properly compare symlinks

This commit is contained in:
Oliver Smith 2017-06-06 22:21:59 +02:00
parent 63ac1f5f6c
commit 31b276eeb9
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 63 additions and 31 deletions

View file

@ -35,7 +35,7 @@ def download(args, url, prefix, cache=True):
# Check if file exists in cache
prefix = prefix.replace("/", "_")
path = (args.work + "/cache_http/" + prefix + "_" +
hashlib.sha512(url.encode("utf-8")).hexdigest())
hashlib.sha256(url.encode("utf-8")).hexdigest())
if os.path.exists(path):
if cache:
return path