aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@infinera.com>2021-06-16 16:43:13 +0200
committerFabian Groffen <grobian@gentoo.org>2021-06-16 21:19:43 +0200
commit137025a3bb18195b6e2dd57a4ec52af6db352a51 (patch)
tree779a2cb67f12c762f352fdbb264144467b176dda
parentqmerge: add comment about hash == NULL (diff)
downloadportage-utils-137025a3bb18195b6e2dd57a4ec52af6db352a51.tar.gz
portage-utils-137025a3bb18195b6e2dd57a4ec52af6db352a51.tar.bz2
portage-utils-137025a3bb18195b6e2dd57a4ec52af6db352a51.zip
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@infinera.com> Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--qmerge.c2
1 files changed, 1 insertions, 1 deletions
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);