me
/
guix
Archived
1
0
Fork 0

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.
master
Ludovic Courtès 2013-01-09 19:26:37 +01:00
parent 58db733e6d
commit 44b6be7744
2 changed files with 5 additions and 2 deletions

View File

@ -491,7 +491,9 @@ List packages currently available in the software distribution. When
matches @var{regexp}. matches @var{regexp}.
For each package, print the following items separated by tabs: its name, 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 @end table

View File

@ -440,9 +440,10 @@ Install, remove, or upgrade PACKAGES in a single transaction.\n"))
(cons p r)))) (cons p r))))
'()))) '())))
(for-each (lambda (p) (for-each (lambda (p)
(format #t "~a\t~a\t~a~%" (format #t "~a\t~a\t~a\t~a~%"
(package-name p) (package-name p)
(package-version p) (package-version p)
(string-join (package-outputs p) ",")
(location->string (package-location p)))) (location->string (package-location p))))
(sort available (sort available
(lambda (p1 p2) (lambda (p1 p2)