[Yum-devel] [PATCH] yum list <pattern> gets a failure exit code

seth vidal skvidal at linux.duke.edu
Tue Jul 31 19:46:20 UTC 2007


On Tue, 2007-07-31 at 15:27 -0400, James Antill wrote:
> This patch changes the exit code to indicate failure when people do:
> 
>  yum list FOO
> 
> ...and FOO doesn't exist. I've attached it and it can be merged from:
> 
> git pull http://people.redhat.com/jantill/gits/yum yum-list-cmd-exit
> 
>  Or all my current patches can be merged from:
> 
> git pull http://people.redhat.com/jantill/gits/yum james
> 


Just to be clear if you pass:


yum list FOO BAR

and FOO exists but BAR does not exist

you'll end up with a success code.

is that what we want?

/me hates partial failure result codes

-sv





More information about the Yum-devel mailing list