reassign 658222 dlocate
thanks

On Wed, 01 Feb 2012, Craig Sanders wrote:
> FYI, here's why dlocate is still useful.

I don't claim that it's not useful and the bug report was not aiming to
get rid of dlocate... but to tell you that you should update your code
to use the proper interfaces and not to access internal files.

So please don't reassign it to dpkg, that doesn't make sense.

> dlocate achieves this speed by concatenating the file listings to a
> single file in a nightly cron job, and running a simple grep on the
> result.  A long time ago, it used to use frcode and locate, but it turns
> out that grepping a text file is much faster.

So you can certainly concatenate the output of "dpkg -L <package>"
executed on all packages ?

For better performances you can give multiple parameters to "dpkg -L".

The tricky part (if you want to be compatible to multiarch) is to get
the list of all packages...

dpkg-query -f'${binary:Package} ${Package}\n' -W|awk '{print $1}' should
do it. With a multiarch dpkg, ${binary:Package} will be non-empty and
thus used. For older dpkg, the usual ${Package} substitution will be used.

> i'm more than happy to modify dlocate to work with whatever command-line
> options dpkg (or the various apt* tools) provides to give access to the
> package file lists.

Why wouldn't "dpkg -L" be enough ?

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/liberation/



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to