GNU bug report logs - #33323
guix package (--show & --search) missing error when package is not found

Previous Next

Package: guix;

Reported by: swedebugia <swedebugia <at> riseup.net>

Date: Thu, 8 Nov 2018 22:40:03 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33323 in the body.
You can then email your comments to 33323 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#33323; Package guix. (Thu, 08 Nov 2018 22:40:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to swedebugia <swedebugia <at> riseup.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 08 Nov 2018 22:40:03 GMT) Full text and rfc822 format available.

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

From: swedebugia <swedebugia <at> riseup.net>
To: Report new Guix bug <bug-guix <at> gnu.org>
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





Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Sun, 11 Nov 2018 22:56:02 GMT) Full text and rfc822 format available.

Notification sent to swedebugia <swedebugia <at> riseup.net>:
bug acknowledged by developer. (Sun, 11 Nov 2018 22:56:02 GMT) Full text and rfc822 format available.

Message #10 received at 33323-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: swedebugia <swedebugia <at> riseup.net>
Cc: 33323-done <at> debbugs.gnu.org
Subject: Re: bug#33323: guix package (--show & --search) missing error when
 package is not found
Date: Sun, 11 Nov 2018 23:55:36 +0100
Hello,

swedebugia <swedebugia <at> 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’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 10 Dec 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 137 days ago.

Previous Next


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