Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607498 - app-portage/portage-utils: qfile: print output sorted
Summary: app-portage/portage-utils: qfile: print output sorted
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-28 18:10 UTC by Frank Steinmetzger
Modified: 2018-04-05 19:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Steinmetzger 2017-01-28 18:10:17 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2018-03-27 17:21:45 UTC
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.
Comment 2 Fabian Groffen gentoo-dev 2018-03-30 07:57:06 UTC
It seemed my initial query just returned sorted output by luck.
Comment 3 Larry the Git Cow gentoo-dev 2018-04-03 20:13:56 UTC
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(-)}
Comment 4 Larry the Git Cow gentoo-dev 2018-04-05 19:03:02 UTC
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(-)