[Yum-devel] [PATCH] Return an error code if yum can't install any of the specified packages
Seth Vidal
skvidal at fedoraproject.org
Thu Mar 11 21:16:16 UTC 2010
On Thu, 11 Mar 2010, James Antill wrote:
>>> This will echo "worked" if _either_ a or b is installed after yum
>>> finishes, but tries to install both.
>>
>> I would argue that if I run "yum install -y a b" and either a or b is
>> not found or not installable for any reason, then nothing should happen
>> and yum should print an error and return a non-zero exitcode. Ignoring
>> missing packages that are explicitly listed on the command-line has
>> always seemed wrong.
>
> So I _personally_ agree, however I'm trying to change it as little as
> possible so as not to break anybody's scripts in weird ways. People can
> still do the "all must be installed" by writing it out in separate
> commands, and the only RFEs I've seen want to use it for a single
> install like:
>
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?
-sv
More information about the Yum-devel
mailing list