gnu-maintenance: `latest-release' closes its connection.
* guix/gnu-maintenance.scm (latest-release): Close CONN before returning.
This commit is contained in:
parent
8e5e7299d1
commit
1f495e04c1
@ -281,14 +281,18 @@ pairs. Example: (\"mit-scheme-9.0.1\" . \"/gnu/mit-scheme/stable.pkg/9.0.1\").
|
|||||||
(release-file project file))
|
(release-file project file))
|
||||||
(_ #f))
|
(_ #f))
|
||||||
entries)))
|
entries)))
|
||||||
|
(ftp-close conn)
|
||||||
(and=> (reduce latest #f files)
|
(and=> (reduce latest #f files)
|
||||||
(cut cons <> directory))))
|
(cut cons <> directory))))
|
||||||
((subdirs ...)
|
((subdirs ...)
|
||||||
;; Assume that SUBDIRS correspond to versions, and jump into the
|
;; Assume that SUBDIRS correspond to versions, and jump into the
|
||||||
;; one with the highest version number.
|
;; one with the highest version number.
|
||||||
(let ((target (reduce latest #f subdirs)))
|
(let ((target (reduce latest #f subdirs)))
|
||||||
(and target
|
(if target
|
||||||
(loop (string-append directory "/" target))))))))))
|
(loop (string-append directory "/" target))
|
||||||
|
(begin
|
||||||
|
(ftp-close conn)
|
||||||
|
#f)))))))))
|
||||||
|
|
||||||
(define %package-name-rx
|
(define %package-name-rx
|
||||||
;; Regexp for a package name, e.g., "foo-X.Y". Since TeXmacs uses
|
;; Regexp for a package name, e.g., "foo-X.Y". Since TeXmacs uses
|
||||||
|
Loading…
Reference in New Issue
Block a user