mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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.
This commit is contained in:
parent
b7aca04856
commit
b3679f2d10
1 changed files with 13 additions and 8 deletions
|
@ -706,14 +706,19 @@ (define html-updatable-package?
|
|||
"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
|
||||
|
|
Loading…
Reference in a new issue