diff options
author | Joakim Tjernlund <joakim.tjernlund@infinera.com> | 2021-06-16 16:43:13 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2021-06-16 21:19:43 +0200 |
commit | 137025a3bb18195b6e2dd57a4ec52af6db352a51 (patch) | |
tree | 779a2cb67f12c762f352fdbb264144467b176dda /qmerge.c | |
parent | qmerge: add comment about hash == NULL (diff) | |
download | portage-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>
Diffstat (limited to 'qmerge.c')
-rw-r--r-- | qmerge.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |