Skip to content

fix(packages): detect virtual/provides packages as installed - #36

Merged
subbeh merged 1 commit into
mainfrom
fix/pacman-provides-query
Aug 4, 2026
Merged

fix(packages): detect virtual/provides packages as installed#36
subbeh merged 1 commit into
mainfrom
fix/pacman-provides-query

Conversation

@subbeh

@subbeh subbeh commented Aug 4, 2026

Copy link
Copy Markdown
Owner

pacman -Q with multiple packages returns the actual package name
(e.g. "man-db" for "man"), but the bulk result was keyed by the
returned name, causing a lookup miss for virtual packages.

Now uses a hybrid approach: bulk query first for performance, then
individually re-checks any packages not found by exact name. The
individual query uses the queried name as the key, correctly
detecting provides/virtual packages.

pacman -Q with multiple packages returns the actual package name
(e.g. "man-db" for "man"), but the bulk result was keyed by the
returned name, causing a lookup miss for virtual packages.

Now uses a hybrid approach: bulk query first for performance, then
individually re-checks any packages not found by exact name. The
individual query uses the queried name as the key, correctly
detecting provides/virtual packages.
@subbeh
subbeh merged commit d5304aa into main Aug 4, 2026
3 checks passed
@subbeh
subbeh deleted the fix/pacman-provides-query branch August 4, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant