GNU bug report logs - #47537
specification->package does not seem to support outputs

Previous Next

Package: guix;

Reported by: fsdfsdfsd3 <fsdfsdfsd3 <at> protonmail.com>

Date: Thu, 1 Apr 2021 06:20:01 UTC

Severity: normal

Tags: notabug

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 47537 <at> debbugs.gnu.org (full text, mbox):

From: Leo Prikler <leo.prikler <at> student.tugraz.at>
To: fsdfsdfsd3 <fsdfsdfsd3 <at> protonmail.com>, 47537 <at> debbugs.gnu.org
Subject: Re: specification->package does not seem to support outputs
Date: Thu, 01 Apr 2021 12:19:03 +0200
Hello,

Am Donnerstag, den 01.04.2021, 03:50 +0000 schrieb fsdfsdfsd3:
> Hello,
> 
> An example of this behavior in a guile repl is:
> 
> (use-modules (gnu packages))
> (specification->package "qemu")  ; works
> (specification->package "qemu:doc")  ; errors and closes the repl
Given its docstring, that's to be expected:

    Return a package matching SPEC.  SPEC may be a package name, or a
    package name followed by an at-sign and a version number.  If the 
    version number is not present, return the preferred newest version.

> (specification->package+output "qemu:doc") ; works as expected
In other words, use specification->package+output ;)

Regards,
Leo





This bug report was last modified 4 years and 40 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.