forked from Mirror/pmbootstrap
WIP #64: make gcc-armhf lazy-reproducible, properly compare symlinks
This commit is contained in:
parent
63ac1f5f6c
commit
31b276eeb9
5 changed files with 63 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue