aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-02-05 15:19:22 +0100
committerFabian Groffen <grobian@gentoo.org>2019-02-05 15:19:22 +0100
commite2319b0dcf7b54d71ddfd1e3eca712c49e83d6fe (patch)
tree17250093aa365871c2fb920e0bb4bed971122138
parentman: regen (diff)
downloadportage-utils-e2319b0dcf7b54d71ddfd1e3eca712c49e83d6fe.tar.gz
portage-utils-e2319b0dcf7b54d71ddfd1e3eca712c49e83d6fe.tar.bz2
portage-utils-e2319b0dcf7b54d71ddfd1e3eca712c49e83d6fe.zip
atom_explode: ignore slot matching operators
Bug: https://bugs.gentoo.org/673750 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--libq/atom_explode.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libq/atom_explode.c b/libq/atom_explode.c
index a4ba569..de42103 100644
--- a/libq/atom_explode.c
+++ b/libq/atom_explode.c
@@ -1,9 +1,10 @@
/*
- * Copyright 2005-2018 Gentoo Foundation
+ * Copyright 2005-2019 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
*
* Copyright 2005-2008 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2014 Mike Frysinger - <vapier@gentoo.org>
+ * Copyright 2018- Fabian Groffen - <grobian@gentoo.org>
*/
typedef enum { VER_ALPHA=0, VER_BETA, VER_PRE, VER_RC, VER_NORM, VER_P } atom_suffixes;
@@ -161,6 +162,10 @@ atom_explode(const char *atom)
if ((ptr = strrchr(ret->CATEGORY, ':')) != NULL) {
ret->SLOT = ptr + 1;
*ptr = '\0';
+
+ /* ignore slots that are about package matching */
+ if (ret->SLOT[0] == '=' || ret->SLOT[0] == '*')
+ ret->SLOT = NULL;
}
/* see if we have any suffix operators */