pub fn analyze_foreign_repo_overlap_with_qm_snapshot(
repo: &str,
pre_apply_foreign_snapshot: Option<&[(String, String)]>,
) -> Result<ForeignRepoOverlapAnalysis, String>Expand description
What: Compare foreign installs to pacman -Sl <repo>, using an optional pre-apply pacman -Qm snapshot.
Inputs:
repo: Pacman repository name forpacman -Sl.pre_apply_foreign_snapshot: WhenSome, foreign rows captured when repo apply was queued (before privileged commands). WhenNone, callslist_foreign_packagesat analysis time.
Output:
- Same as
analyze_foreign_repo_overlap.
Details:
- After a repo is enabled, pacman may reclassify installs so they no longer appear in
-Qm; the snapshot preserves the pre-enable foreign set without toggling repositories inpacman.conf.
ยงErrors
- Propagates failures from
list_foreign_packageswhenpre_apply_foreign_snapshotisNone, or from [sync_repo_pkgnames_or_empty_if_repo_missing].