compute_preflight_summary_with_runner

Function compute_preflight_summary_with_runner 

Source
pub fn compute_preflight_summary_with_runner<R: CommandRunner>(
    items: &[PackageItem],
    action: PreflightAction,
    runner: &R,
) -> PreflightSummaryOutcome
Expand description

What: Compute preflight summary data using a custom command runner.

Inputs:

  • items: Packages to analyse.
  • action: Install vs. remove context.
  • runner: Command execution abstraction (mockable).

Output:

Details:

  • Fetches installed versions/sizes via pacman when possible.
  • Applies the initial risk heuristic outlined in the specification.
  • Gracefully degrades metrics when metadata is unavailable.