commit:     137025a3bb18195b6e2dd57a4ec52af6db352a51
Author:     Joakim Tjernlund <joakim.tjernlund <AT> infinera <DOT> com>
AuthorDate: Wed Jun 16 14:43:13 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jun 16 19:19:43 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=137025a3

qmerge: fix type for NULL SLOTs

Use SLOT="0" if no SLOT exists, not the other way around

Signed-off-by: Joakim Tjernlund <joakim.tjernlund <AT> infinera.com>
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 0e7ada4..3b74426 100644
--- a/qmerge.c
+++ b/qmerge.c
@@ -1015,7 +1015,7 @@ pkg_merge(int level, const depend_atom *qatom, const 
tree_match_ctx *mpkg)
        snprintf(buf, sizeof(buf), "%s/%s:%s",
                        mpkg->atom->CATEGORY,
                        mpkg->atom->PN,
-                       mpkg->atom->SLOT != NULL ? "0" : mpkg->atom->SLOT);
+                       mpkg->atom->SLOT == NULL ? "0" : mpkg->atom->SLOT);
        slotatom = atom_explode(buf);
 
        previnst = best_version(slotatom, BV_INSTALLED);

Reply via email to