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? ...@@ -201,8 +201,8 @@ (define core-package?
(filter-map (match-lambda (filter-map (match-lambda
(('argument . value) (('argument . value)
(let ((p (find-packages-by-name value))) (let ((p (find-packages-by-name value)))
(unless p (when (null? p)
(leave (_ "~a: no package by that name") (leave (_ "~a: no package by that name~%")
value)) value))
p)) p))
(_ #f)) (_ #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