This commit is contained in:
shibazaki 2025-10-06 18:04:23 +02:00
parent abee9d703b
commit fdfd2a4f21

View File

@ -10,7 +10,7 @@ fn parse_dpkg_output(output: &str) -> Vec<Package> {
.lines()
.filter_map(|line| {
let mut parts = line.split('\t');
let name = parts.next()?.trim_matches(|c : char| c == '"' || c.is_whitespace()).to_string();
let name = parts.next()?.trim().trim_matches('"').trim().to_string();
let version = parts.next()?.to_string();
Some(Package { name, version })
})