Skip to main content

Module preflight

Module preflight 

Source
Expand description

Preflight summary computation helpers.

The routines in this module gather package metadata, estimate download and install deltas, and derive risk heuristics used to populate the preflight modal. All command execution is abstracted behind CommandRunner so the logic can be exercised in isolation.

Re-exports§

pub use command::CommandError;
pub use command::CommandRunner;
pub use command::SystemCommandRunner;

Modules§

guardrails
Pre-transaction guardrails: pacman db-lock detection, disk-space checks, and sync-database freshness checks with actionable guidance.

Structs§

PreflightSummaryOutcome
What: Outcome of preflight summary computation.

Functions§

compute_preflight_summary
What: Compute preflight summary data using the system command runner.
compute_preflight_summary_with_runner
What: Compute preflight summary data using a custom command runner.