[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: gnu-maintenance: 'generic-html' updates packages with the right p
From: |
guix-commits |
Subject: |
01/09: gnu-maintenance: 'generic-html' updates packages with the right property. |
Date: |
Mon, 5 Apr 2021 06:03:51 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit b3679f2d10a3257fbbb016e01b4f553c137fd177
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Apr 4 15:40:39 2021 +0200
gnu-maintenance: 'generic-html' updates packages with the right property.
* guix/gnu-maintenance.scm (html-updatable-package?): Return true for
packages with a 'release-monitoring-url' property. This allows us to
cater for packages with source fetched over, say, FTP, but with an HTML
page to monitor.
---
guix/gnu-maintenance.scm | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm
index 4078e1f..eff26cc 100644
--- a/guix/gnu-maintenance.scm
+++ b/guix/gnu-maintenance.scm
@@ -706,14 +706,19 @@ GNOME packages; EMMS is included though, because its
releases are on gnu.org."
"ftp.gnu.org" "download.savannah.gnu.org"
"pypi.org" "crates.io" "rubygems.org"
"bioconductor.org")))
- (url-predicate (lambda (url)
- (match (string->uri url)
- (#f #f)
- (uri
- (let ((scheme (uri-scheme uri))
- (host (uri-host uri)))
- (and (memq scheme '(http https))
- (not (member host hosting-sites))))))))))
+ (define http-url?
+ (url-predicate (lambda (url)
+ (match (string->uri url)
+ (#f #f)
+ (uri
+ (let ((scheme (uri-scheme uri))
+ (host (uri-host uri)))
+ (and (memq scheme '(http https))
+ (not (member host hosting-sites)))))))))
+
+ (lambda (package)
+ (or (assoc-ref (package-properties package) 'release-monitoring-url)
+ (http-url? package)))))
(define (latest-html-updatable-release package)
"Return the latest release of PACKAGE. Do that by crawling the HTML page of
- branch master updated (b7aca04 -> dda0ada), guix-commits, 2021/04/05
- 01/09: gnu-maintenance: 'generic-html' updates packages with the right property.,
guix-commits <=
- 03/09: gnu: file: Add 'release-monitoring-url' property., guix-commits, 2021/04/05
- 05/09: utils: 'tarball-sans-extension' recognizes ".tgz"., guix-commits, 2021/04/05
- 02/09: gnu: ncftp: Add 'release-monitoring-url' property., guix-commits, 2021/04/05
- 04/09: gnu-maintenance: Remove unused procedure., guix-commits, 2021/04/05
- 09/09: gnu: sloccount: Update source URL., guix-commits, 2021/04/05
- 06/09: gnu-maintenance: Recognize more source tarball naming schemes., guix-commits, 2021/04/05
- 07/09: gnu: mpg321: Update source URL., guix-commits, 2021/04/05
- 08/09: gnu: libffi: Add 'release-monitoring-url'., guix-commits, 2021/04/05