Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: /
Date: Tue, 03 Apr 2018 20:14:01
Message-Id: 1522786336.0baddddc111c7fba7a8a087a2905ca645a27f5f8.grobian@gentoo
1 commit: 0baddddc111c7fba7a8a087a2905ca645a27f5f8
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 3 20:12:16 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 3 20:12:16 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=0baddddc
7
8 qfile_main: use q_vdb_foreach_pkg_sorted, bug #607498
9
10 For consistency with almost all other output, use sorted output variant
11 for qfile as well. The little sorting/memory overhead due to this is
12 probably ok, given how much it is used already.
13
14 Bug: https://bugs.gentoo.org/607498
15
16 qfile.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/qfile.c b/qfile.c
20 index ec08491..3f13df6 100644
21 --- a/qfile.c
22 +++ b/qfile.c
23 @@ -462,7 +462,7 @@ int qfile_main(int argc, char **argv)
24 nb_of_queries = prepare_qfile_args(argc, (const char **) argv, &state);
25 /* Now do the actual `qfile` checking */
26 if (nb_of_queries > 0)
27 - found += q_vdb_foreach_pkg(qfile_cb, &state, NULL);
28 + found += q_vdb_foreach_pkg_sorted(qfile_cb, &state);
29
30 if (state.args.non_orphans) {
31 /* display orphan files */