pub fn get_backup_files(
name: &str,
source: &Source,
) -> Result<Vec<String>, String>Expand description
What: Identify files marked for backup handling during install or removal operations.
Inputs:
name: Package whose backup array should be inspected.source: Source descriptor to decide how to gather backup information.
Output:
- Returns a list of backup file paths or an empty list when the data cannot be retrieved.
ยงErrors
- Returns
Errwhenpacman -Qiicommand execution fails for installed packages - Returns
Errwhen PKGBUILD or .SRCINFO fetch fails and no fallback is available
Details:
- Prefers querying the installed package via
pacman -Qii; falls back to best-effort heuristics.