mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
gnu-maintenance: Call 'adjusted-upstream-source' only when there's a source.
This is a followup to 59a47fb678
.
* guix/gnu-maintenance.scm (latest-savannah-release): Call
'adjusted-upstream-source' only when 'latest-html-release' returns
true.
(latest-kernel.org-release): Likewise.
This commit is contained in:
parent
64066abdb0
commit
a022f5a4c1
1 changed files with 9 additions and 10 deletions
|
@ -647,10 +647,10 @@ (define (latest-savannah-release package)
|
|||
(directory (dirname (uri-path uri)))
|
||||
(rewrite (url-prefix-rewrite %savannah-base
|
||||
"mirror://savannah")))
|
||||
(adjusted-upstream-source (latest-html-release package
|
||||
#:base-url %savannah-base
|
||||
#:directory directory)
|
||||
rewrite)))
|
||||
(and=> (latest-html-release package
|
||||
#:base-url %savannah-base
|
||||
#:directory directory)
|
||||
(cut adjusted-upstream-source <> rewrite))))
|
||||
|
||||
(define (latest-xorg-release package)
|
||||
"Return the latest release of PACKAGE."
|
||||
|
@ -677,12 +677,11 @@ (define (file->signature file)
|
|||
(directory (dirname (uri-path uri)))
|
||||
(rewrite (url-prefix-rewrite %kernel.org-base
|
||||
"mirror://kernel.org")))
|
||||
(adjusted-upstream-source (latest-html-release package
|
||||
#:base-url %kernel.org-base
|
||||
#:directory directory
|
||||
#:file->signature
|
||||
file->signature)
|
||||
rewrite)))
|
||||
(and=> (latest-html-release package
|
||||
#:base-url %kernel.org-base
|
||||
#:directory directory
|
||||
#:file->signature file->signature)
|
||||
(cut adjusted-upstream-source <> rewrite))))
|
||||
|
||||
(define %gnu-updater
|
||||
;; This is for everything at ftp.gnu.org.
|
||||
|
|
Loading…
Reference in a new issue