[Yum-devel] [PATCH 1/2] Opt. for rpmdb.returnPackages(patterns=...). Drops about 30% from remove time.

James Antill james at fedoraproject.org
Thu Jun 3 15:46:36 UTC 2010


On Thu, 2010-06-03 at 09:08 +0300, Ville Skyttä wrote:
> On Wednesday 02 June 2010, James Antill wrote:
> 
> > +                if '?' in pat or '*' in pat:
> > +                    break
> 
> Just to verify, are [] intentionally omitted here?  misc.re_glob(pat)?

 It wasn't intentional, as I almost always forget about [] :).

 I can't see any speed difference with doing any checks anyway, so I
just removed that block.

 It did get me to see the other bug though "yum remove '[y]um'" doesn't
currently work.

 Pushed fixes for both, as they are trivial.



More information about the Yum-devel mailing list