Hi!

[ Sorry, it seems I missed replying to this. ]

On Sat, 2019-02-02 at 10:59:05 +0100, A Mennucc1 wrote:
> I see your point;
> 
> but (as the name " dpkg_L_faster" suggests), using the dpkg commands to
> obtain meta-information is quite slow; so I will have to think about it

Ok, the dpkg_L function can be improved substantially by querying
multiple packages at once, batched up to the ARG_MAX command-line
limit. This should improve the query substantially up to or even
faster times than the current code.

If you need the entire files database, you could instead do something
like:

  ,---
  dpkg-query \
    --showformat='Package: ${Package}\nFiles:\n${db-fsys:Files}\n' \
    --show
  `---

> BTW: you write
> 
> >  And finally, the contents and its format, will be changing in
> > the near future.

> May you please point me to some more info regarding this change?

This would be <https://wiki.debian.org/Teams/Dpkg/Spec/MetadataTracking>.

Thanks,
Guillem

Reply via email to