aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-03-25 16:12:33 +0200
committerFabian Groffen <grobian@gentoo.org>2018-03-25 16:12:33 +0200
commit905449f8011e71f0cc018c9aa755cdbfb0307461 (patch)
treecaad1d1dff854f0007ad2f5beb53a7a236e1f613 /libq/atom_explode.c
parentqdepends_vdb_deep_cb: use atom matching when possible, bug #608960 (diff)
downloadportage-utils-905449f8011e71f0cc018c9aa755cdbfb0307461.tar.gz
portage-utils-905449f8011e71f0cc018c9aa755cdbfb0307461.tar.bz2
portage-utils-905449f8011e71f0cc018c9aa755cdbfb0307461.zip
atom_explode: fix inversion of < and <=
Diffstat (limited to 'libq/atom_explode.c')
-rw-r--r--libq/atom_explode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libq/atom_explode.c b/libq/atom_explode.c
index d5d08408..1b819096 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;