From 299112d36e872d98896bf8dec281c34d9adad06e Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 1 Feb 2013 13:16:27 +0100 Subject: guix-package: Report `--search' matches in recutils format. * guix/ui.scm (fill-paragraph, string->recutils, package->recutils): New procedures. * guix-package.in (guix-package)[process-query]: Use `package->recutils' to display package meta-data. * tests/guix-package.sh: Adjust test. * tests/ui.scm: New file. * Makefile.am (TESTS): Add it. * doc/guix.texi (Invoking guix-package): Adjust `--search' documentation, and give an example. --- tests/guix-package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/guix-package.sh') diff --git a/tests/guix-package.sh b/tests/guix-package.sh index 0b31b55103..42a1f8da96 100644 --- a/tests/guix-package.sh +++ b/tests/guix-package.sh @@ -70,7 +70,7 @@ then test "`guix-package -p "$profile" -I 'g.*e' | cut -f1`" = "guile-bootstrap" # Search. - test "`guix-package -s "GNU Hello" | cut -f1`" = "hello" + test "`guix-package -s "GNU Hello" | grep ^name:`" = "name: hello" test "`guix-package -s "n0t4r341p4ck4g3"`" = "" # Remove a package. -- cgit 1.4.1