[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.

Seth Vidal skvidal at fedoraproject.org
Wed Oct 7 21:34:54 UTC 2009

On Thu, 8 Oct 2009, Ville Skyttä wrote:

> 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.

it is on purpose. An update is not an obsolete - they are checked for 


More information about the Yum-devel mailing list