Skip to content

Conversation

@Duncaen
Copy link
Member

@Duncaen Duncaen commented Jun 30, 2019

This fixes and adds a test case for an issue we are currently experiencing, where orphaned are not correctly removed, if there are more than one package depending on the same package.

The main issue is that xbps_get_pkg_fulldeptree only finds each dep it encounters once, adding the deps to the hashtable, but then never again adding them to any results.
So if xbps_get_pkg_fulldeptree is called multiple times and the requested packages share dependencies in their fulldeptree, there are going to be packages missing from the results array.

Another small thing I fixed is to not add the requested package itself to the results:

$ xbps-query --fulldeptree -Rx linux4.19
linux4.19-4.19.56_1

@Duncaen Duncaen requested a review from xtraeme June 30, 2019 20:24
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