mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu-maintenance: Better handle empty #:directory for 'latest-html-release'.
In particular, this makes sure we don't add a trailing slash when the user specified a 'release-monitoring-url' property for the 'generic-html' updater. * guix/gnu-maintenance.scm (latest-html-release): When DIRECTORY is empty, do not append it.
This commit is contained in:
parent
60d629d777
commit
a0f83602f8
1 changed files with 3 additions and 1 deletions
|
@ -475,7 +475,9 @@ (define* (latest-html-release package
|
|||
if any. Otherwise, FILE->SIGNATURE must be a procedure; it is passed a source
|
||||
file URL and must return the corresponding signature URL, or #f it signatures
|
||||
are unavailable."
|
||||
(let* ((uri (string->uri (string-append base-url directory "/")))
|
||||
(let* ((uri (string->uri (if (string-null? directory)
|
||||
base-url
|
||||
(string-append base-url directory "/"))))
|
||||
(port (http-fetch/cached uri #:ttl 3600))
|
||||
(sxml (html->sxml port))
|
||||
(links (delete-duplicates (html-links sxml))))
|
||||
|
|
Loading…
Reference in a new issue