mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
refresh: Bail out when asked for a nonexistent updater.
* guix/scripts/refresh.scm (lookup-updater): Call 'leave' when 'find' returns #f.
This commit is contained in:
parent
e3cc793e7c
commit
fba607b129
1 changed files with 4 additions and 3 deletions
|
@ -197,9 +197,10 @@ (define %updaters
|
|||
|
||||
(define (lookup-updater name)
|
||||
"Return the updater called NAME."
|
||||
(find (lambda (updater)
|
||||
(eq? name (upstream-updater-name updater)))
|
||||
%updaters))
|
||||
(or (find (lambda (updater)
|
||||
(eq? name (upstream-updater-name updater)))
|
||||
%updaters)
|
||||
(leave (_ "~a: no such updater~%") name)))
|
||||
|
||||
(define (list-updaters-and-exit)
|
||||
"Display available updaters and exit."
|
||||
|
|
Loading…
Reference in a new issue