pub fn build_repo_key_refresh_bundle(
repos: &ReposConfFile,
selected_section: &str,
) -> Result<RepoApplyBundle, String>Expand description
What: Plan privileged pacman-key receive + local sign for the selected repo row only.
Inputs:
repos: Parsedrepos.confdocument.selected_section: Pacman[repo]name from the modal (case-insensitive trim).
Output:
RepoApplyBundlewith two commands (recv, lsign) or an error string.
Details:
- Requires
key_idwith at least 8 hex digits after normalization; optionalkey_serveris passed topacman-key --recv-keysthe same way as full apply. - Does not write drop-ins or run
pacman -Sy.
ยงErrors
- When
active_toolreturns an error (no privilege tool configured). - When no matching
[[repo]]row exists,key_idis missing/invalid, or fingerprint normalization fails.