refresh_installed_cache

Function refresh_installed_cache 

Source
pub async fn refresh_installed_cache()
Expand description

What: Refresh the process-wide cache of installed package names using pacman -Qq.

Inputs:

  • None (spawns a blocking task to run pacman)

Output:

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

Details:

  • Parses command stdout into a HashSet and swaps it into the shared cache under a write lock.