get_backup_files_from_installed

Function get_backup_files_from_installed 

Source
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 Err when pacman -Qii command execution fails (I/O error)
  • Returns Err when pacman -Qii exits with non-zero status for reasons other than package not found

Details:

  • Parses the Backup Files section, handling wrapped lines to ensure complete coverage.