Skip to content

lib: filter overridden repository reverse dependencies - #697

Open
tuxkt wants to merge 1 commit into
void-linux:masterfrom
tuxkt:fix-repository-revdeps-priority
Open

lib: filter overridden repository reverse dependencies#697
tuxkt wants to merge 1 commit into
void-linux:masterfrom
tuxkt:fix-repository-revdeps-priority

Conversation

@tuxkt

@tuxkt tuxkt commented Sep 7, 2026

Copy link
Copy Markdown

xbps-query -RX includes reverse dependencies from overridden packages. For example, a local bar with its dependency on foo removed still appears in -RX foo because the lower-priority repository's bar depends on it.

Resolve each reverse dependency by package name and filter out results from repositories other than the one selected by the pool. This preserves distinct reverse dependencies from later repositories and also handles overrides with identical package versions.

Fixes #696.

Validation:

  • Both override regression tests fail on upstream c5f41d5.
  • All 12 xbps-query tests pass with the fix, including real/virtual dependency queries and overrides from repositories without the target package.
  • XBPS builds successfully; git diff --check passes.

xbps-query -RX concatenates reverse dependencies from all repositories,
including packages overridden by an earlier repository. This can report
multiple versions or dependencies removed by a local package override.

Look up each reverse dependency by name in the repository pool and retain
it only if its selected repository matches the current repository. Keep
collecting unrelated reverse dependencies from later repositories.

Add tests for cross-repository results, version and same-version overrides,
virtual dependencies, and overrides in repositories without the target.

Fixes void-linux#696.
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.

xbps-query -RX repository overrides

1 participant