Bug#944968: popularity-contest: Program accesses internal dpkg database
- To: Guillem Jover <guillem@debian.org>
- Cc: 944968@bugs.debian.org, Niels Thykier <niels@thykier.net>
- Subject: Bug#944968: popularity-contest: Program accesses internal dpkg database
- From: Bill Allombert <ballombe@debian.org>
- Date: Thu, 17 Jun 2021 10:31:52 +0200
- Message-id: <[🔎] 20210617083152.GG28447@yellowpig>
- Reply-to: Bill Allombert <ballombe@debian.org>, 944968@bugs.debian.org
- In-reply-to: <YMpm/HJXQi/XGNf4@thunder.hadrons.org>
- References: <20191117214402.GF30024@gaara.hadrons.org> <20191117215958.cr5uyja7gb3tapse@yellowpig> <7617df59-5ac7-31da-1895-1126681a7129@thykier.net> <20191119083457.GB138745@thunder.hadrons.org> <20191119102756.a2i4jegdr4uzecj7@yellowpig> <20191119102756.a2i4jegdr4uzecj7@yellowpig> <c4bcf90a-0c9b-e278-2658-420479a11ca9@thykier.net> <20201212143347.GG1134@yellowpig> <YMpm/HJXQi/XGNf4@thunder.hadrons.org> <20191117214402.GF30024@gaara.hadrons.org>
On Wed, Jun 16, 2021 at 11:02:52PM +0200, Guillem Jover wrote:
> On Sat, 2020-12-12 at 15:33:47 +0100, Bill Allombert wrote:
> > On Thu, Nov 28, 2019 at 08:55:00PM +0000, Niels Thykier wrote:
> > > While it would take a bit of restructuring / refactoring, I think it
> > > would be possible to use a single dpkg-query for everything and still be
> > > able to process the data in a "streaming" fashion.
> > >
> > > As an example, using the following:
> > >
> > > dpkg-query --show \
> > > --showformat='${status} ${package}\n${db-fsys:Files}\n\n'
>
> > I am trying to implement this to see how well this perform.
> > Unfortunately it seems it does not provide a stable interface across release,
> > but maybe I am doing something wrong.
> >
> > dpkg-query --show --showformat='${status} ${package}\n${db-fsys:Files}\n\n'|head -n1
> >
> > On buster:
> > deinstall ok config-files 0ad
> >
> > On sid:
> > (Lecture de la base de données... 134812 fichiers et répertoires déjà
> > installés.)
>
> For others following along at home (and myself), this was filed as #977240,
> and fixed in dpkg 1.20.6. (Was asked about a missing reply here, which I
> though I was owing after fixing it, then found about the bug. :)
Sorry about not following here but then the freeze was coming and I
stopped working on this. Thanks for bringing this up now that the
release is close.
So the main point is: is it a stable interface for which compatibility
will be provided in the future ?
Cheers,
--
Bill. <ballombe@debian.org>
Imagine a large red swirl here.
Reply to: