[Yum-devel] [PATCH] Make a specical codepath for /path/to/* searches

James Antill james at fedoraproject.org
Mon Sep 28 18:07:31 UTC 2009


On Mon, 2009-09-28 at 13:43 -0400, Seth Vidal wrote:
> 
> On Mon, 28 Sep 2009, James Antill wrote:
> 
> > ---
> > yum/sqlitesack.py |   14 ++++++++++++++
> > 1 files changed, 14 insertions(+), 0 deletions(-)
> >
> > diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
> > index 9bfcd93..ce2988f 100644
> > --- a/yum/sqlitesack.py
> > +++ b/yum/sqlitesack.py
> > @@ -911,6 +911,20 @@ class YumSqlitePackageSack(yumRepo.YumPackageSack):
> >             dirname_check = "dirname GLOB ? and filenames LIKE ? %s and " % esc
> >             sql_params.append(dirname)
> >             sql_params.append('%' + pattern + '%')
> > +        elif filename == '*':
> > +            # We only care about matching on dirname...
[...]
> The patch is fine - but what's the USE case for this? It's not like 
> someone can dep on /path/to/*

 I'm currently looking at some code for finding "applications", and I
have:

yb.returnPackagesByDep('/etc/init.d/*')
yb.returnPackagesByDep('/etc/cron.*/*')

...among others.



More information about the Yum-devel mailing list