summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix/build/download.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/build/download.scm b/guix/build/download.scm
index de8922f6e2..509dcc08c7 100644
--- a/guix/build/download.scm
+++ b/guix/build/download.scm
@@ -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))