[Yum-devel] yum shell exiting

seth vidal skvidal at phy.duke.edu
Tue Apr 5 14:56:16 UTC 2005


> I agree.  The sanest/safest way I can see to do it is bail out if there 
> are any problems.  Otherwise yum might end up doing something quite 
> different than the user intended.
> 
> And I'm all for sane error codes, when using the shell and when not 
> using the shell.

Defining error codes for partial-failure states is the tricky part.

if you run:
 yum install foo bar baz

and foo and bar are available but baz doesn't exist - what's the result
code?

0?
1?
255?

Think about that problem some and give me some suggestions on how to
handle it.

-sv





More information about the Yum-devel mailing list