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

Re: dpkg-scanlibs



On Tue, Feb 27, 2001 at 04:25:47PM +1100, Craig Sanders wrote:

> yep.
> 
> in pseduo-perl
> 
>     if (mtime of /var/lib/dpkg/dlocatedb < mtime of /var/lib/dpkg/status) {
>         system("/usr/sbin/update-dlocatedb") 
> 	} ;
>     # now carry on with whatever it is that needed dlocate -S to be
>     # up-to-date.
> 

this would only work if run by root.  perhaps it would be better to
fallback on the slower dpkg -S when the dlocatedb is old.  

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgp8bEv70hSZd.pgp
Description: PGP signature


Reply to: