summary refs log tree commit diff
path: root/guix-package.in
diff options
context:
space:
mode:
Diffstat (limited to 'guix-package.in')
-rw-r--r--guix-package.in6
1 files changed, 1 insertions, 5 deletions
diff --git a/guix-package.in b/guix-package.in
index 58164c6e46..e0c3287b3c 100644
--- a/guix-package.in
+++ b/guix-package.in
@@ -597,11 +597,7 @@ Install, remove, or upgrade PACKAGES in a single transaction.\n"))
 
         (('search regexp)
          (let ((regexp (and regexp (make-regexp regexp))))
-           (for-each (lambda (p)
-                       (format #t "~a\t~a\t~a~%"
-                               (package-name p)
-                               (package-version p)
-                               (location->string (package-location p))))
+           (for-each (cute package->recutils <> (current-output-port))
                      (find-packages-by-description regexp))
            #t))
         (_ #f))))