Dear devs It would be of great help if qfile outputs its result sorted. The (my ;-) ) most common use case is to call qfile and quickly glance over the list. But because it's not sorted, oftentimes I need to appended |sort (or grep, now that I'm piping it anyway). Thank you for your consideration.
On my system the output is in sorted order, is it not for you? May be an artifact of the FS in use, in that case, a sort is necessary to accomplish this.
It seemed my initial query just returned sorted output by luck.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=0baddddc111c7fba7a8a087a2905ca645a27f5f8 commit 0baddddc111c7fba7a8a087a2905ca645a27f5f8 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-04-03 20:12:16 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-04-03 20:12:16 +0000 qfile_main: use q_vdb_foreach_pkg_sorted, bug #607498 For consistency with almost all other output, use sorted output variant for qfile as well. The little sorting/memory overhead due to this is probably ok, given how much it is used already. Bug: https://bugs.gentoo.org/607498 qfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)}
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34b636503cc7dcabe32b9b377c2eb77cb5fd5575 commit 34b636503cc7dcabe32b9b377c2eb77cb5fd5575 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-04-05 19:02:10 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-04-05 19:02:34 +0000 app-portage/portage-utils: version bump to 0.70 This release fixes multiple bugs lingering around for a while. Closes: https://bugs.gentoo.org/651546 Closes: https://bugs.gentoo.org/646310 Closes: https://bugs.gentoo.org/645554 Closes: https://bugs.gentoo.org/643820 Closes: https://bugs.gentoo.org/638032 Closes: https://bugs.gentoo.org/608960 Closes: https://bugs.gentoo.org/607498 Closes: https://bugs.gentoo.org/558306 Closes: https://bugs.gentoo.org/526596 Closes: https://bugs.gentoo.org/470168 Closes: https://bugs.gentoo.org/351100 Closes: https://bugs.gentoo.org/335453 Package-Manager: Portage-2.3.24, Repoman-2.3.6 app-portage/portage-utils/Manifest | 2 +- .../portage-utils/portage-utils-0.62.ebuild | 2 +- .../portage-utils/portage-utils-0.63.ebuild | 43 ---------------------- ...ls-0.64-r1.ebuild => portage-utils-0.70.ebuild} | 16 +------- 4 files changed, 4 insertions(+), 59 deletions(-)