On Tue, 2007-09-25 at 21:33 -0400, seth vidal wrote:

> I see where it's coming from - puppet was more or less relying on:
>  yum list  stuff which is already installed
> to exit with a 0.

Actually, the question that puppet wants to ask at that point is 'does
foo need to be updated' where 'updated' means needing an install if the
package is not installed yet or needing an update if a newer version is
available.

> I am somewhat inclined to agree it needs to exit with something else.
> Then again I'm also inclined to think that puppet needs to stop using
> yum on the cli as an 'interface' to program against.

I'd agree with that though none of the other options seem much more
workable, considering that that mechanism needs to work over a wide
variety of distros. One option would be to use repoquery, but even that
doesn't cover all platforms where yum is the main means of package
updates (e.g. RHEL5 GA)

David


_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to