mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
guix: lint: Add checker for new upstream versions.
* guix/scripts/lint.scm (check-for-updates): New procedure. (%checkers): Add it. * guix/scripts/refresh.scm (importer-modules, %updaters): Move from here ... * guix/upstream.scm: ... to here.
This commit is contained in:
parent
c723271f30
commit
adf0c531a8
3 changed files with 36 additions and 19 deletions
|
@ -30,7 +30,6 @@
|
|||
#:use-module (guix packages)
|
||||
#:use-module (guix profiles)
|
||||
#:use-module (guix upstream)
|
||||
#:use-module (guix discovery)
|
||||
#:use-module (guix graph)
|
||||
#:use-module (guix scripts graph)
|
||||
#:use-module (guix monads)
|
||||
|
@ -46,8 +45,7 @@
|
|||
#:use-module (srfi srfi-26)
|
||||
#:use-module (srfi srfi-37)
|
||||
#:use-module (ice-9 binary-ports)
|
||||
#:export (guix-refresh
|
||||
%updaters))
|
||||
#:export (guix-refresh))
|
||||
|
||||
|
||||
;;;
|
||||
|
@ -162,22 +160,6 @@ specified with `--select'.\n"))
|
|||
;;; Updates.
|
||||
;;;
|
||||
|
||||
(define (importer-modules)
|
||||
"Return the list of importer modules."
|
||||
(cons (resolve-interface '(guix gnu-maintenance))
|
||||
(all-modules (map (lambda (entry)
|
||||
`(,entry . "guix/import"))
|
||||
%load-path))))
|
||||
|
||||
(define %updaters
|
||||
;; The list of publically-known updaters.
|
||||
(delay (fold-module-public-variables (lambda (obj result)
|
||||
(if (upstream-updater? obj)
|
||||
(cons obj result)
|
||||
result))
|
||||
'()
|
||||
(importer-modules))))
|
||||
|
||||
(define (lookup-updater-by-name name)
|
||||
"Return the updater called NAME."
|
||||
(or (find (lambda (updater)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue