commit:     7a25088dd562bfc9a0db68944e85913aa90fa178
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 10 10:04:47 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jun 10 10:04:47 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=7a25088d

qmerge: fix atom_compare call, make sure user argument is query

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 qmerge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qmerge.c b/qmerge.c
index aa10d9c..b36d709 100644
--- a/qmerge.c
+++ b/qmerge.c
@@ -2163,7 +2163,7 @@ parse_packages(set *todo)
                                        for (i = 0; i < todo_cnt; i++) {
                                                pkg_atom->REPO = 
todo_atoms[i]->REPO ? Pkg.REPO : NULL;
                                                pkg_atom->SLOT = 
todo_atoms[i]->SLOT ? Pkg.SLOT : NULL;
-                                               if (atom_compare(todo_atoms[i], 
pkg_atom) == EQUAL) {
+                                               if (atom_compare(pkg_atom, 
todo_atoms[i]) == EQUAL) {
                                                        if (search_pkgs)
                                                                
print_Pkg(verbose, pkg_atom, &Pkg);
                                                        else

Reply via email to