I've got a couple of partitions on an external drive that contain only
backups, so I don't want them to show up in /sw/bin/locate's database.

In principle, the right thing to do is to edit /sw/etc/cron.daily/findutils
to pass the --prunepaths option to updatedb, but that doesn't work in this
case, because --prunepaths expects a space-separated list, and the paths I
want to exclude have spaces in them.  Escaping the spaces with backslashes
doesn't work.  (If you look at the script /sw/bin/updatedb, you'll see that
it uses a primitive sed script to change the space-separated list into a
regex, and this sed script doesn't pay any attention to escapes.)

I'm fairly certain that this limitation in the findutils package exists in
the upstream copy and isn't fink's responsibility.  But I thought I'd ask
anyway.  Does anyone know of a way around this problem?

Thanks,

Richard

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to