On Sat, Oct 20, 2018 at 09:16:56AM +0800, Paul Wise wrote:
> dd-list looks at the apt lists directory with a glob:
> 
> $source_files = [glob('/var/lib/apt/lists/*_source_Sources')];
> 
> This will break when the user has enabled Acquire::GzipIndexes to store
> compressed index files since the filenames will be different. It will
> also break if the filenames of the Sources files ever change format.
> 
> If apt ever introduces a compression format that isn't yet supported by
> dd-list then it would also break.
> 
> A better alternative is to ask apt for all the Sources files and then
> ask apt to decompress them using these commands:

dd-list has been doing just that for almost 3 years now:
https://salsa.debian.org/debian/devscripts/commit/e14703c3f193f8e091430aaa2c542f328c52333a

Did you actually encounter a problem with this, or was it just from
searching for things poking at /var/lib/apt/lists?

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

Reply via email to