commit:     e1a3cb832e35df4656e64b3385823d1ffd8ab848
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri May 20 17:14:54 2022 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri May 20 17:14:54 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=e1a3cb83

libq/atom: make atom_to_string_r produce BUILD_ID when set

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 libq/atom.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libq/atom.c b/libq/atom.c
index 3d9d31f..50e9520 100644
--- a/libq/atom.c
+++ b/libq/atom.c
@@ -1015,6 +1015,8 @@ atom_to_string_r(char *buf, size_t buflen, depend_atom *a)
                off += snprintf(buf + off, buflen - off, "-%s", a->PV);
        if (a->PR_int > 0)
                off += snprintf(buf + off, buflen - off, "-r%d", a->PR_int);
+       if (a->BUILDID > 0)
+               off += snprintf(buf + off, buflen - off, "~%u", a->BUILDID);
        off += snprintf(buf + off, buflen - off, "%s", atom_op_str[a->sfx_op]);
        if (a->SLOT != NULL || a->slotdep != ATOM_SD_NONE)
                off += snprintf(buf + off, buflen - off, ":%s%s%s%s",

Reply via email to