mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
download: Pass the raw file name to content-addressed mirrors.
* guix/build/download.scm (url-fetch)[content-addressed-uris]: Call 'strip-store-file-name' on FILE before passing it to 'make-url'.
This commit is contained in:
parent
42bf34298e
commit
38f1cf8a8e
1 changed files with 2 additions and 1 deletions
|
@ -737,7 +737,8 @@ (define content-addressed-uris
|
|||
(append-map (lambda (make-url)
|
||||
(filter-map (match-lambda
|
||||
((hash-algo . hash)
|
||||
(string->uri (make-url file hash-algo hash))))
|
||||
(let ((file (strip-store-file-name file)))
|
||||
(string->uri (make-url file hash-algo hash)))))
|
||||
hashes))
|
||||
content-addressed-mirrors))
|
||||
|
||||
|
|
Loading…
Reference in a new issue