[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/10: gnu-maintenance: Document nested procedures in 'import-html-relea
From: |
guix-commits |
Subject: |
06/10: gnu-maintenance: Document nested procedures in 'import-html-release'. |
Date: |
Sat, 26 Aug 2023 16:19:10 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 265423266084e75877fa758691276b368e61da0a
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Aug 10 12:06:05 2023 -0400
gnu-maintenance: Document nested procedures in 'import-html-release'.
* guix/gnu-maintenance.scm (import-html-release): Add docstring to the
'file->signature/guess' and 'url->release' nested procedures.
---
guix/gnu-maintenance.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm
index eea75095b5..6f08e2e295 100644
--- a/guix/gnu-maintenance.scm
+++ b/guix/gnu-maintenance.scm
@@ -514,6 +514,7 @@ are unavailable."
(string-append base-url directory "/")))
(links (url->links url)))
(define (file->signature/guess url)
+ "Return the first link that matches a signature extension, else #f."
(let ((base (basename url)))
(any (lambda (link)
(any (lambda (extension)
@@ -524,6 +525,8 @@ are unavailable."
links)))
(define (url->release url)
+ "Return an <upstream-source> object if a release file was found at URL,
+else #f."
(let* ((base (basename url))
(base-url (string-append base-url directory))
(url (cond ((and=> (string->uri url) uri-scheme) ;full URL?
@@ -574,7 +577,7 @@ are unavailable."
(() #f)
((first . _)
(if version
- ;; find matching release version and return it
+ ;; Find matching release version and return it.
(find (lambda (upstream)
(string=? (upstream-source-version upstream) version))
(coalesce-sources candidates))
- branch master updated (cfe55b220a -> 1dce887776), guix-commits, 2023/08/26
- 01/10: gnu-maintenance: Make base-url argument of import-html-release required., guix-commits, 2023/08/26
- 06/10: gnu-maintenance: Document nested procedures in 'import-html-release'.,
guix-commits <=
- 04/10: gnu-maintenance: Fix indentation., guix-commits, 2023/08/26
- 05/10: gnu-maintenance: Accept package object in 'import-html-release' procedure., guix-commits, 2023/08/26
- 07/10: gnu-maintenance: Extract 'canonicalize-url' from 'import-html-release'., guix-commits, 2023/08/26
- 02/10: gnu-maintenance: Fix docstring., guix-commits, 2023/08/26
- 03/10: gnu-maintenance: Extract url->links procedure., guix-commits, 2023/08/26
- 08/10: gnu-maintenance: Add support to rewrite version in URL path., guix-commits, 2023/08/26
- 09/10: gnu-maintenance: Allow mirror URLs to fallback to the generic HTML updater., guix-commits, 2023/08/26
- 10/10: gnu-maintenance: Consider Qt source tarballs as "release files"., guix-commits, 2023/08/26