fn collect_packages(
packages_result: Result<Vec<InstalledPackage>>,
) -> (Vec<InstalledPackage>, Vec<DiagnosisResult>)Expand description
Load installed packages or convert the failure into a diagnostic entry.
A database lookup failure should not prevent the doctor report from being generated. Instead, the function returns an empty package list plus a single error diagnostic that explains why package inventory is unavailable.