commit:     905449f8011e71f0cc018c9aa755cdbfb0307461
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 25 14:12:33 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Mar 25 14:12:33 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=905449f8

atom_explode: fix inversion of < and <=

 libq/atom_explode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libq/atom_explode.c b/libq/atom_explode.c
index d5d0840..1b81909 100644
--- a/libq/atom_explode.c
+++ b/libq/atom_explode.c
@@ -135,9 +135,9 @@ atom_explode(const char *atom)
                        ++atom;
                        if (atom[0] == '=') {
                                ++atom;
-                               ret->pfx_op = ATOM_OP_NEWER_EQUAL;
-                       } else
                                ret->pfx_op = ATOM_OP_NEWER;
+                       } else
+                               ret->pfx_op = ATOM_OP_NEWER_EQUAL;
                        break;
                default:
                        ret->pfx_op = ATOM_OP_BLOCK;

Reply via email to