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

Re: dpkg-scanlibs



On Mon, Feb 26, 2001 at 11:27:32PM +0900, Masato Taruishi wrote:
> At Mon, 26 Feb 2001 01:49:11 -0800,
> Joey Hess wrote:
> 
> > > * Will try to use dlocate instead of dpkg -S for extra speedups
> > 
> > Doesn't dlotate work just like locate by caching data? If so, this could
> 
> compares the timestamp of /var/lib/dlocate/dlocatedb with
> /var/lib/dpkg/status's one?

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.

craig

--
craig sanders <cas@taz.net.au>

      GnuPG Key: 1024D/CD5626F0 
Key fingerprint: 9674 7EE2 4AC6 F5EF 3C57  52C3 EC32 6810 CD56 26F0



Reply to: