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: Sat, 12 Dec 2020 15:33:47 +0100
- Message-id: <[🔎] 20201212143347.GG1134@yellowpig>
- Reply-to: Bill Allombert <ballombe@debian.org>, 944968@bugs.debian.org
- In-reply-to: <c4bcf90a-0c9b-e278-2658-420479a11ca9@thykier.net>
- 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> <20191117214402.GF30024@gaara.hadrons.org>
On Thu, Nov 28, 2019 at 08:55:00PM +0000, Niels Thykier wrote:
> On Tue, 19 Nov 2019 11:27:56 +0100 Bill Allombert <ballombe@debian.org>
>
> 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'
Hello Guillem,
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.)
Cheers,
Bill.
Reply to: