[Reportbug-maint] Bug#648513: dlocate for faster package name lookup
Justin B Rye
jbr at edlug.org.uk
Sat Nov 12 15:05:21 UTC 2011
Eduard Bloch wrote:
> when user specifies the name of the buggy binary then a lookup for the
> binary package name is suggested. This is currently done using
> dpkg --search ... , which is ok but painfully slow when disk load is
> high.
>
> I suggest to use dlocate as primary alternative if dlocate is present.
Note that dlocate is already in reportbug's "Suggests:" list. While I
am by no means a Python expert, it seems to me that the query_dpkg_for
function in reportbug-6.3/reportbug/utils.py already does try to go
through dlocate first, then tries again setting "use_dlocate=False" if
that fails.
Such a failure is quite likely if it's a package the user has only
just started trying out - the dlocate database is updated just once a
day, so freshly installed packages won't be registered.
--
JBR
Not the maintainer or even a Debian Member
More information about the Reportbug-maint
mailing list