fix(debian): move *.list
dpkg analyzer to separate analyzer
#6682
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
dpkg
contains all installed packages invar/lib/dpkg/status
file. But installed files for each package are stored invar/lib/dpkg/info/<pkg_name>.list
files.Therefore, when we work with packages at different levels, we can overwrite system files.
e.g.:
— line 1: We parse default installed packages with their system files.
— line 2: install new package.
var/lib/dpkg/status
will be updated at this layer (curl
will be added). Therefore, we find all packages of first layer +curl
. But second layer only includesvar/lib/dpkg/info/curl.list
file, so system files for first layer packages will be overwritten with empty value and we will not include this in report.This PR moves analyze of
*.list
files (saving system files for each package) to separate analyzer.System files will be merged with packages when layers are applied.
before:
after:
Related issues
--list-all-pkgs
flag has missing os installed files with in the report #5857Checklist