On Thu, 30 Jun 2011, Anders Kaseorg wrote: > On Thu, 30 Jun 2011, Raphaël Hertzog wrote: > > One can run dpkg-query with multiple arguments to avoid the overhead. > > But it requires some refactoring of the code I guess. I.e. find out the > > list of package first, then run dpkg-query on all the packages at the > > same time. > > Like this? It doesn’t seem to work (at least with my dpkg > 1.16.0.3ubuntu3): > > $ dpkg-query --control-path bash md5sums dash md5sums > dpkg-query: error: --control-path takes at most two arguments
It's not dpkg-query --control-path that is slow. It's dpkg-query --listfiles (aka dpkg -L). And this one can take multiple parameters. > > Because you don't know how dpkg's internal files are organized... > > FWIW, there is some argument to be made here that debsums might _have_ to > work below the dpkg abstraction layer, especially because the current > abstraction doesn’t seem to be sufficient otherwise. Even --control-path Yes, if you look at dpkg's roadmap, we're interested in merging the functionality in dpkg itself. http://wiki.debian.org/Teams/Dpkg/RoadMap Cheers, -- Raphaël Hertzog ◈ Debian Developer Follow my Debian News ▶ http://RaphaelHertzog.com (English) ▶ http://RaphaelHertzog.fr (Français) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org