mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
download: Handle content-addressed-mirrors returning #f.
* guix/build/download.scm (url-fetch): don't pass the return value from a content-addressed-mirror procedure to 'string->uri' if it is #f. Change-Id: Ic4f94f86fcfebe6f2e60cb3c4330ce57886ab647 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
2a333541e8
commit
f607aaaaaa
1 changed files with 2 additions and 1 deletions
|
@ -783,7 +783,8 @@ otherwise simply ignore them."
|
|||
(filter-map (match-lambda
|
||||
((hash-algo . hash)
|
||||
(let ((file (strip-store-file-name file)))
|
||||
(string->uri (make-url file hash-algo hash)))))
|
||||
(and=> (make-url file hash-algo hash)
|
||||
string->uri))))
|
||||
hashes))
|
||||
content-addressed-mirrors))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue