mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
gnu-maintenance: Remove unused parameters of 'latest-ftp-release'.
* guix/gnu-maintenance.scm (latest-ftp-release): Remove #:ftp-open, #:ftp-close, and #:keep-file?.
This commit is contained in:
parent
fe96f64110
commit
29330b57e2
1 changed files with 1 additions and 7 deletions
|
@ -327,16 +327,11 @@ (define* (latest-ftp-release project
|
|||
#:key
|
||||
(server "ftp.gnu.org")
|
||||
(directory (string-append "/gnu/" project))
|
||||
(keep-file? (const #t))
|
||||
(file->signature (cut string-append <> ".sig"))
|
||||
(ftp-open ftp-open) (ftp-close ftp-close))
|
||||
(file->signature (cut string-append <> ".sig")))
|
||||
"Return an <upstream-source> for the latest release of PROJECT on SERVER
|
||||
under DIRECTORY, or #f. Use FTP-OPEN and FTP-CLOSE to open (resp. close) FTP
|
||||
connections; this can be useful to reuse connections.
|
||||
|
||||
KEEP-FILE? is a predicate to decide whether to enter a directory and to
|
||||
consider a given file (source tarball) as a valid candidate based on its name.
|
||||
|
||||
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."
|
||||
(define (latest a b)
|
||||
|
@ -394,7 +389,6 @@ (define (file->source directory file)
|
|||
(releases (filter-map (match-lambda
|
||||
((file 'file . _)
|
||||
(and (release-file? project file)
|
||||
(keep-file? file)
|
||||
(file->source directory file)))
|
||||
(_ #f))
|
||||
entries)))
|
||||
|
|
Loading…
Reference in a new issue