diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-01-09 19:26:37 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-01-09 19:26:37 +0100 |
commit | 44b6be7744da9cf5513e4e6361681ea277f69097 (patch) | |
tree | 5dc3c024a5873f50f9f7ba4809627e1db9424d0d | |
parent | 58db733e6d33dec92a565b4213668ff4527db553 (diff) | |
download | patches-44b6be7744da9cf5513e4e6361681ea277f69097.tar patches-44b6be7744da9cf5513e4e6361681ea277f69097.tar.gz |
guix-package: Show package outputs in `--list-available'.
* guix-package.in (guix-package)[process-query]: For `list-available',
show the outputs of each package.
* doc/guix.texi (Invoking guix-package): Update accordingly.
-rw-r--r-- | doc/guix.texi | 4 | ||||
-rw-r--r-- | guix-package.in | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 0ae9e69441..dc3473405e 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -491,7 +491,9 @@ List packages currently available in the software distribution. When matches @var{regexp}. For each package, print the following items separated by tabs: its name, -its version string, and the source location of its definition. +its version string, the parts of the package (@code{out} for the main +files, @code{lib} for libraries and possibly headers, etc.), and the +source location of its definition. @end table diff --git a/guix-package.in b/guix-package.in index cf40cdc42d..286ae8db09 100644 --- a/guix-package.in +++ b/guix-package.in @@ -440,9 +440,10 @@ Install, remove, or upgrade PACKAGES in a single transaction.\n")) (cons p r)))) '()))) (for-each (lambda (p) - (format #t "~a\t~a\t~a~%" + (format #t "~a\t~a\t~a\t~a~%" (package-name p) (package-version p) + (string-join (package-outputs p) ",") (location->string (package-location p)))) (sort available (lambda (p1 p2) |