mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02: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:
@@ -201,8 +201,8 @@ update would trigger a complete rebuild."
|
||||
(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))
|
||||
|
||||
Reference in New Issue
Block a user