gnu-maintenance: Improve check for disabled host names.
Found while investigating <https://issues.guix.gnu.org/65304>. * guix/gnu-maintenance.scm (html-updatable-package?): Tighten predicate. Reviewed-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
13425768f7
commit
c655231b72
@ -846,7 +846,11 @@ Optionally include a VERSION string to fetch a specific version."
|
||||
(let ((scheme (uri-scheme uri))
|
||||
(host (uri-host uri)))
|
||||
(and (memq scheme '(http https))
|
||||
(not (member host hosting-sites)))))))))
|
||||
;; HOST may contain prefixes,
|
||||
;; e.g. "profanity-im.github.io", hence the
|
||||
;; suffix-based test below.
|
||||
(not (any (cut string-suffix? <> host)
|
||||
hosting-sites)))))))))
|
||||
|
||||
(lambda (package)
|
||||
(or (assoc-ref (package-properties package) 'release-monitoring-url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user