[Yum-devel] [PATCH 1/2] if we have some duplicate installed pkgs that do not conflict and we update for the newer one but something deps on the older one. We shouldn't fail against the rpm tscheck, we should fail well before then.

Ville Skyttä ville.skytta at iki.fi
Wed Oct 7 21:06:07 UTC 2009

On Wednesday 07 October 2009, Seth Vidal wrote:
> This adds 'YumBase.doesThisUpdate(pkg1, pkg2)' which lets this check take
>  less time.
> +    def doesthisUpdate(self, pkg1, pkg2):
> +        """returns True if pkg1 can update pkg2, False if not"""
> +
> +        if pkg1.name != pkg2.name:
> +            return False

Hmm, this doesn't seem to take Obsoletes into account.  If that's on purpose, 
I don't think mentioning it in the docstring would hurt.

More information about the Yum-devel mailing list