qsize does not support cat/pn:slot as input, and does not have slots in output Present output: $ qsize python:3.6 $ qsize -v python:3.6 $ qsize python dev-lang/python: 6893 files, 229 non-files, 108.6M dev-lang/python: 4566 files, 91 non-files, 68.3M dev-lang/python: 6656 files, 225 non-files, 103.4M $ qsize -v python dev-lang/python-3.6.9: 6893 files, 229 non-files, 108.6M dev-lang/python-2.7.17: 4566 files, 91 non-files, 68.3M dev-lang/python-3.5.9: 6656 files, 225 non-files, 103.4M Desired output: $ qsize python:3.6 dev-lang/python: 6893 files, 229 non-files, 108.6M $ qsize -v python:3.6 dev-lang/python-3.6.9: 6893 files, 229 non-files, 108.6M $ qsize --slot python:3.6 dev-lang/python:3.6: 6893 files, 229 non-files, 108.6M $ qsize --slot -v python:3.6 dev-lang/python-3.6.9:3.6: 6893 files, 229 non-files, 108.6M Open question: If a slot is required to disambiguate slots
you can use -F (format) to output the slot: % ./qsize -F "%[CAT]%[PF]%[SLOT]%[SUBSLOT]" python dev-lang/python-2.7.16:2.7: 4102 files, 76 non-files, 63.8M dev-lang/python-3.7.2:3.7/3.7m: 6370 files, 230 non-files, 101.4M dev-lang/python-3.6.8:3.6/3.6m: 6169 files, 208 non-files, 101.4M that it doesn't respect the input slot is a bug.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=814f9ad4b3bfe41617e21f634b6facb84c2e1dfe commit 814f9ad4b3bfe41617e21f634b6facb84c2e1dfe Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2020-02-21 08:17:09 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2020-02-21 08:17:09 +0000 libq/tree: respect SLOT in query atom for tree_open_pkg Bug: https://bugs.gentoo.org/710372 Signed-off-by: Fabian Groffen <grobian@gentoo.org> TODO.md | 1 - libq/tree.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
with above fix, this now works ./qsize -F "%[CAT]%[PF]%[SLOT]%[SUBSLOT]" python:3.7 dev-lang/python-3.7.2:3.7/3.7m: 6370 files, 230 non-files, 101.4M
Will this apply to qlist too?
yes, this is a generic (e.g libq/tree) fix that affects most applets
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79b140be686c76a38301525c52e49a177d718d1d commit 79b140be686c76a38301525c52e49a177d718d1d Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2020-03-08 07:59:56 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2020-03-08 07:59:56 +0000 app-portage/portage-utils-0.86: version bump Closes: https://bugs.gentoo.org/711830 Closes: https://bugs.gentoo.org/701470 Closes: https://bugs.gentoo.org/710372 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Fabian Groffen <grobian@gentoo.org> app-portage/portage-utils/Manifest | 2 +- .../{portage-utils-0.85.ebuild => portage-utils-0.86.ebuild} | 0 2 files changed, 1 insertion(+), 1 deletion(-)
I would like to see the qsize python:3.6 syntax work too.
% qsize python:3.6 dev-lang/python: 6172 files, 209 non-files, 102.1M works?