mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
narinfo: Do not repeat slash when building nar URLs.
* guix/narinfo.scm (narinfo-maker): When one of URLS is relative, do not repeat trailing slash if it's already present in CACHE-URL.
This commit is contained in:
parent
e68466de12
commit
cba0395c99
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,9 @@ (define len (length urls))
|
|||
(map (lambda (url)
|
||||
(or (string->uri url)
|
||||
(string->uri
|
||||
(string-append cache-url "/" url))))
|
||||
(if (string-suffix? "/" cache-url)
|
||||
(string-append cache-url url)
|
||||
(string-append cache-url "/" url)))))
|
||||
urls)
|
||||
compressions
|
||||
(match file-sizes
|
||||
|
|
Loading…
Reference in a new issue