Skip to content
Snippets Groups Projects
Commit 49d91de7 authored by Eric Bavier's avatar Eric Bavier
Browse files

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.
parent 5af6de3e
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment