all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#33323: guix package (--show & --search) missing error when package is not found
@ 2018-11-08 21:34 swedebugia
  2018-11-11 22:55 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: swedebugia @ 2018-11-08 21:34 UTC (permalink / raw)
  To: 33323

Hi

$ guix package --show=test
(no output)

Expected: error package test not found

+ you can help package it by reading the XX section in the manual

The relevant code begins on line 771 (in guix/scripts/package.scm):

       (('show requested-name)
        (let-values (((name version)
                      (package-name->name+version requested-name)))
          (leave-on-EPIPE
           (for-each (cute package->recutils <> (current-output-port))
                     (find-packages-by-name name version)))
          #t))

Maybe we could catch this in the buttom of the procedure if the output 
is null?

-- 
Cheers
Swedebugia

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#33323: guix package (--show & --search) missing error when package is not found
  2018-11-08 21:34 bug#33323: guix package (--show & --search) missing error when package is not found swedebugia
@ 2018-11-11 22:55 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-11-11 22:55 UTC (permalink / raw)
  To: swedebugia; +Cc: 33323-done

Hello,

swedebugia <swedebugia@riseup.net> skribis:

> $ guix package --show=test
> (no output)
>
> Expected: error package test not found

Done in commit 652163154c06b47936a453f44ea35938789718de.

Note that --search is different: it’s expected to return zero or more
results, and returning zero results is not an error.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-11 22:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08 21:34 bug#33323: guix package (--show & --search) missing error when package is not found swedebugia
2018-11-11 22:55 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.