Browse Source

gnu-maintenance: Handle lists returned by 'origin-uri'.

This fixes "guix refresh man-pages", for instance.

* guix/gnu-maintenance.scm (latest-savannah-release)
(latest-kernel.org-release): Handle the case where 'origin-uri' returns
a list.
gn-latest-20200725
Ludovic Courtès 1 year ago
parent
commit
b579b1c1d1
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 10
      guix/gnu-maintenance.scm

10
guix/gnu-maintenance.scm

@ -642,7 +642,10 @@ releases are on gnu.org."
(define (latest-savannah-release package)
"Return the latest release of PACKAGE."
(let* ((uri (string->uri (origin-uri (package-source package))))
(let* ((uri (string->uri
(match (origin-uri (package-source package))
((? string? uri) uri)
((uri mirrors ...) uri))))
(package (package-upstream-name package))
(directory (dirname (uri-path uri)))
(rewrite (url-prefix-rewrite %savannah-base
@ -672,7 +675,10 @@ releases are on gnu.org."
(define (file->signature file)
(string-append (file-sans-extension file) ".sign"))
(let* ((uri (string->uri (origin-uri (package-source package))))
(let* ((uri (string->uri
(match (origin-uri (package-source package))
((? string? uri) uri)
((uri mirrors ...) uri))))
(package (package-upstream-name package))
(directory (dirname (uri-path uri)))
(rewrite (url-prefix-rewrite %kernel.org-base

Loading…
Cancel
Save