--- Begin Message ---
Subject: |
guix package (--show & --search) missing error when package is not found |
Date: |
Thu, 8 Nov 2018 22:34:34 +0100 |
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
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#33323: guix package (--show & --search) missing error when package is not found |
Date: |
Sun, 11 Nov 2018 23:55:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
swedebugia <address@hidden> 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’.
--- End Message ---