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 Use --help for help about querying packages. $ dpkg-query --control-path bash md5sums --control-path dash md5sums dpkg-query: error: --control-path takes at most two arguments Use --help for help about querying packages. > 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 is documented as “semi-public” and “might get deprecated later on”, and its very existence is predecated on the assumption that md5sums are internally stored in a file per package with a particular format. But obviously, if we can make things prettier without an unacceptable performance penalty, I’m all for that. Anders -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org