[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: --findoptions no

From: James Youngman
Subject: Re: --findoptions no
Date: Thu, 27 Mar 2008 10:14:21 +0000

On Thu, Mar 27, 2008 at 12:13 AM, Karl Berry <address@hidden> wrote:
> I spoke too soon.  --findoptions is not being sufficient.  I tried simply
>   updatedb --findoptions="-type f"
>  to try to get it to only index plain files.
>  But this had the highly undesirable side effect of ignoring the pruning
>  expressions.  Looking at the code:
>      \( $prunefs_exp \
>      -type d -regex "$PRUNEREGEX" \) -prune -o $print_option
>  Clearly the -type f has the effect of making $PRUNEREGEX never match,
>  since the latter is only checked against directories.
>  Which is why I ended up with what I was doing before, where I manually
>  put the  -type f  into $print_option.
>  I don't see a way to play with the variables to get the -type f to be
>  effective, but I really want that, since it reduces the useless matches
>  (for my usage pattern) greatly.
>  Any ideas?

I can't think of a way that doesn't involve editing the updatedb script.  Sorry.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]