Skip to main content

parse_installed_packages

Function parse_installed_packages 

Source
pub fn parse_installed_packages(root_log: &str) -> Vec<InstalledPackage>
Expand description

Parse installed packages from a root.log file.

Parses the DNF transaction table that both DNF4 and DNF5 produce, with columns: Package, Arch, Version, Repo, Size. Lines are recognized by having a known RPM arch as the second whitespace-delimited token.

Also handles mock’s DEBUG util.py:NNN: prefix.