There's a merged pull request on the void-packages repository Accept -Q / -K in show-build-deps, sort-dependencies, xbps-cycles.py https://github.com/void-linux/void-packages/pull/47888 Description: As it is now, if `pkgA` checkdepends on `pkgB`, sort-dependencies will still print `pkgA` before `pkgB`. This causes CI to build `pkgB` twice: first build `pkgA` which forces implicit build of `pkgB`; then build of `pkgB` (explicit, so it will ignore the package is already built). A concrete example: ``` $ ./xbps-src sort-dependencies python3-process-tests python3-pytest-cov python3-pytest-cov python3-process-tests ``` The example above causes `python-process-tests` to be built twice, as shown in: https://github.com/void-linux/void-packages/actions/runs/7107346278/job/19348602412?pr=47610 After this commit one can do ``` $ ./xbps-src -Q sort-dependencies python3-process-tests python3-pytest-cov python3-process-tests python3-pytest-cov ``` The CI issue is fixed by pasing -Q to sort-dependencies when we are doing a test build. Jump to https://github.com/void-linux/void-packages/pull/47888#issuecomment-1869639495 to skip comments about earlier versions of the PR. #### Testing the changes - I tested the changes in this PR: **YES**