refresh_explicit_cache

Function refresh_explicit_cache 

Source
pub async fn refresh_explicit_cache(mode: InstalledPackagesMode)
Expand description

What: Refresh the process-wide cache of explicitly installed package names.

Inputs:

  • mode: Filter mode for installed packages.
    • LeafOnly: Uses pacman -Qetq (explicitly installed AND not required)
    • AllExplicit: Uses pacman -Qeq (all explicitly installed)

Output:

  • Updates the global explicit-name set; ignores errors.

Details:

  • Converts command stdout into a HashSet and replaces the shared cache atomically.