guix package: Honor the current output when upgrading.

* guix/scripts/package.scm (specification->package+output): Pass OUTPUT
  to 'package-specification->name+version+output'.
This commit is contained in:
Ludovic Courtès 2013-11-24 15:30:06 +01:00
parent 53c85e97dc
commit b874f305e5
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ version; if SPEC does not specify an output, return OUTPUT."
sub-drv)))
(let-values (((name version sub-drv)
(package-specification->name+version+output spec)))
(package-specification->name+version+output spec output)))
(match (find-best-packages-by-name name version)
((p)
(values p (ensure-output p sub-drv)))