get_remote_file_list

Function get_remote_file_list 

Source
pub fn get_remote_file_list(
    name: &str,
    source: &Source,
) -> Result<Vec<String>, String>
Expand description

What: Fetch the list of files published in repositories for a given package.

Inputs:

  • name: Package name in question.
  • source: Source descriptor differentiating official repositories from AUR packages.

Output:

  • Returns the list of file paths or an error when retrieval fails.

ยงErrors

  • Returns Err when pacman -Fl command execution fails for official packages
  • Returns Err when file database is not synced and command fails

Details:

  • Uses pacman -Fl for official packages and currently returns an empty list for AUR entries.