[Yum-devel] [PATCH] Return an error code if yum can't install any of the specified packages
James Antill
james at fedoraproject.org
Thu Mar 11 21:25:39 UTC 2010
On Thu, 2010-03-11 at 16:16 -0500, Seth Vidal wrote:
> We're also setting up the expectation for the user that the other commands
> will work the same way.
>
> How would you go about doing this for update or remove?
Well with the install patch we have:
yum install already-installed
...still returns 0, so having "update" return 0 when there is nothing to
update would be the same. And there is nothing else than "something to
update" or "nothing to update" ... so update always returns 0, and obeys
the same rules as install still :).
By the same reasoning remove should also "now" always return 0 ...
either it is installed, thus. will return 0 as it is removed ... or it
isn't installed (thus. it isn't installed when the yum command
finishes).
More information about the Yum-devel
mailing list