Bug#913781: reprozip: Script accesses internal dpkg database

Rémi Rampin remirampin at gmail.com
Fri Nov 16 04:33:30 GMT 2018


2018-11-15 21:39 EST, Guillem Jover <guillem at debian.org>:
> The same principle I proposed for --listfiles can be used for --search,
> you'd just batch as many filenames as can possibly fit within the
> command-line length limit (ARG_MAX - environment length) to reduce as
> many dpkg-query calls as possible. Doing a «dpkg-query --search» call
> per filename will indeed end up being very expensive.

I had no idea this was possible -- the man page doesn't really hint at
this (I guess that's what the "..." meant).

I have gone ahead and implemented what you describe, it should be in
the next minor release of ReproZip. It also turns out to be faster.

Thanks for the help!

Best
-- 
Rémi



More information about the debian-science-maintainers mailing list