From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 08A801382C5 for ; Tue, 3 Apr 2018 20:14:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CDA7E0D07; Tue, 3 Apr 2018 20:14:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 09453E0D07 for ; Tue, 3 Apr 2018 20:13:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBABE335D2A for ; Tue, 3 Apr 2018 20:13:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD844264 for ; Tue, 3 Apr 2018 20:13:56 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1522786336.0baddddc111c7fba7a8a087a2905ca645a27f5f8.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qfile.c X-VCS-Directories: / X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 0baddddc111c7fba7a8a087a2905ca645a27f5f8 X-VCS-Branch: master Date: Tue, 3 Apr 2018 20:13:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: cf84bd32-cd78-4ecd-af73-092ca1fab9bd X-Archives-Hash: 73761557d25b231a02e6e8341c7491d6 commit: 0baddddc111c7fba7a8a087a2905ca645a27f5f8 Author: Fabian Groffen gentoo org> AuthorDate: Tue Apr 3 20:12:16 2018 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Tue Apr 3 20:12:16 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=0baddddc 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(-) diff --git a/qfile.c b/qfile.c index ec08491..3f13df6 100644 --- a/qfile.c +++ b/qfile.c @@ -462,7 +462,7 @@ int qfile_main(int argc, char **argv) nb_of_queries = prepare_qfile_args(argc, (const char **) argv, &state); /* Now do the actual `qfile` checking */ if (nb_of_queries > 0) - found += q_vdb_foreach_pkg(qfile_cb, &state, NULL); + found += q_vdb_foreach_pkg_sorted(qfile_cb, &state); if (state.args.non_orphans) { /* display orphan files */