pub fn analyze_foreign_repo_overlap(
repo: &str,
) -> Result<ForeignRepoOverlapAnalysis, String>Expand description
What: Compare foreign installs to pacman -Sl <repo> with counts for UI diagnostics.
Inputs:
repo: Pacman repository name (same aspacman -Slargument; usually lowercase).
Output:
ForeignRepoOverlapAnalysiswith sorted overlap entries and counts.
Details:
- Read-only; does not mutate the system.
ยงErrors
- Propagates failures from
list_foreign_packagesor [sync_repo_pkgnames_or_empty_if_repo_missing] whenpacman -Slfails for reasons other than an unknown/missing repository.