Skip to main content

is_package_installed_or_provided

Function is_package_installed_or_provided 

Source
pub fn is_package_installed_or_provided<S: BuildHasher>(
    name: &str,
    installed: &HashSet<String, S>,
    provided: &HashSet<String, S>,
) -> bool
Expand description

What: Check installed or virtual-provider membership through arch-toolkit.

Inputs:

  • name: Package or virtual dependency name.
  • installed: Caller-supplied installed package names.
  • provided: Caller-supplied virtual provider names.

Output:

  • true when the dependency is satisfied.

Details:

  • Supplied sets are honored before lazy host fallback.