pub fn get_backup_files_from_installed(
name: &str,
) -> Result<Vec<String>, String>Expand description
What: Collect backup file entries for an installed package through pacman -Qii.
Inputs:
name: Installed package identifier.
Output:
- Returns the backup array as a vector of file paths or an empty list when not installed.
ยงErrors
- Returns
Errwhenpacman -Qiicommand execution fails (I/O error) - Returns
Errwhenpacman -Qiiexits with non-zero status for reasons other than package not found
Details:
- Parses the
Backup Filessection, handling wrapped lines to ensure complete coverage.