compute_post_summary

Function compute_post_summary 

Source
pub fn compute_post_summary(
    items: &[PackageItem],
    success: Option<bool>,
) -> PostSummaryData
Expand description

What: Produce a best-effort summary of potential post-transaction tasks.

Inputs:

  • items: Packages that were part of the transaction and should inform the summary.
  • success: Execution result: Some(true) for success, Some(false) for failure, None if unknown.

Output:

  • Returns a PostSummaryData structure with file counts, service hints, and conflict tallies.

Details:

  • Combines sync database lookups with an /etc scan without performing system modifications.
  • Uses the provided success flag to indicate transaction outcome, defaulting to false if unknown.