This PR improves the dpkg analyzer by ensuring only interesting files are opened and scanned, and not all files in the FS. To do this, this PR splits the walk dir operation into:
one walk in var/lib/dpkg/info/*.list for the info files
a single read for var/lib/dpkg/status
one walk in var/lib/dpkg/status.d/* for the status files
Description
This PR improves the dpkg analyzer by ensuring only interesting files are opened and scanned, and not all files in the FS. To do this, this PR splits the walk dir operation into:
var/lib/dpkg/info/*.list
for the info filesvar/lib/dpkg/status
var/lib/dpkg/status.d/*
for the status filesRelated issues
Related PRs
Remove this section if you don't have related PRs.
Checklist