[Yum-devel] [PATCH 2/3] Do the pkgmatch_fails negative caching, in _search

James Antill james at fedoraproject.org
Mon Apr 12 17:43:52 UTC 2010


On Mon, 2010-04-12 at 13:07 -0400, Seth Vidal wrote:

> anything wrong with:
> 
> if name and name in self._pkgmatch_fails:

 Well all the other code in that function uses "name is not None", on
the other hand I seriously doubt anyone is passing a name of '' :)

> the 'is not None' thing I've tried to stop using b/c it gets in weird 
> trouble with funky object types.

 I'm not sure what you mean ... as far as I know no object can return
true for "is None"?



More information about the Yum-devel mailing list