guix-package: Make `--search' queries case-insensitive.

* guix-package.in (guix-package)[process-query]: Use `regexp/icase' for
  the `search' regexp.
This commit is contained in:
Ludovic Courtès 2013-02-01 12:52:35 +01:00
parent 0bdba772ca
commit cb09fb24ee

View file

@ -596,7 +596,7 @@ Install, remove, or upgrade PACKAGES in a single transaction.\n"))
#t)) #t))
(('search regexp) (('search regexp)
(let ((regexp (and regexp (make-regexp regexp)))) (let ((regexp (make-regexp regexp regexp/icase)))
(for-each (cute package->recutils <> (current-output-port)) (for-each (cute package->recutils <> (current-output-port))
(find-packages-by-description regexp)) (find-packages-by-description regexp))
#t)) #t))