parent
f6cfc993ac
commit
a5e67dec2a
|
@ -578,11 +578,11 @@ are unavailable."
|
||||||
(coalesce-sources candidates))
|
(coalesce-sources candidates))
|
||||||
;; Select the most recent release and return it.
|
;; Select the most recent release and return it.
|
||||||
(reduce (lambda (r1 r2)
|
(reduce (lambda (r1 r2)
|
||||||
(if (version>? (upstream-source-version r1)
|
(if (version>? (upstream-source-version r1)
|
||||||
(upstream-source-version r2))
|
(upstream-source-version r2))
|
||||||
r1 r2))
|
r1 r2))
|
||||||
first
|
first
|
||||||
(coalesce-sources candidates)))))))
|
(coalesce-sources candidates)))))))
|
||||||
|
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
|
@ -656,20 +656,20 @@ list available from %GNU-FILE-LIST-URI over HTTP(S)."
|
||||||
(tarballs (filter (lambda (file)
|
(tarballs (filter (lambda (file)
|
||||||
(string=? version (tarball->version file)))
|
(string=? version (tarball->version file)))
|
||||||
relevant)))
|
relevant)))
|
||||||
(match tarballs
|
(match tarballs
|
||||||
(() #f)
|
(() #f)
|
||||||
(_
|
(_
|
||||||
(upstream-source
|
(upstream-source
|
||||||
(package name)
|
(package name)
|
||||||
(version version)
|
(version version)
|
||||||
(urls (map (lambda (file)
|
(urls (map (lambda (file)
|
||||||
(string-append "mirror://gnu/"
|
(string-append "mirror://gnu/"
|
||||||
(string-drop file
|
(string-drop file
|
||||||
(string-length "/gnu/"))))
|
(string-length "/gnu/"))))
|
||||||
;; Sort so that the tarball with the same compression
|
;; Sort so that the tarball with the same compression
|
||||||
;; format as currently used in PACKAGE comes first.
|
;; format as currently used in PACKAGE comes first.
|
||||||
(sort tarballs better-tarball?)))
|
(sort tarballs better-tarball?)))
|
||||||
(signature-urls (map (cut string-append <> ".sig") urls))))))))
|
(signature-urls (map (cut string-append <> ".sig") urls))))))))
|
||||||
|
|
||||||
(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
|
||||||
|
|
Reference in New Issue