mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
guix: refresh: Correctly identify invalid package names.
* guix/scripts/refresh.scm (guix-refresh): Check for null list returned by find-packages-by-name rather than #f.
This commit is contained in:
parent
5af6de3e67
commit
49d91de763
1 changed files with 2 additions and 2 deletions
|
@ -201,8 +201,8 @@ (define core-package?
|
|||
(filter-map (match-lambda
|
||||
(('argument . value)
|
||||
(let ((p (find-packages-by-name value)))
|
||||
(unless p
|
||||
(leave (_ "~a: no package by that name")
|
||||
(when (null? p)
|
||||
(leave (_ "~a: no package by that name~%")
|
||||
value))
|
||||
p))
|
||||
(_ #f))
|
||||
|
|
Loading…
Reference in a new issue