aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2022-05-20 19:14:54 +0200
committerFabian Groffen <grobian@gentoo.org>2022-05-20 19:14:54 +0200
commite1a3cb832e35df4656e64b3385823d1ffd8ab848 (patch)
tree460e62749b33930e51b29d32ffd5f30cfad94ff8
parentlibq/tree: support FEATURES=binpkg-multi-instance Packages file (diff)
downloadportage-utils-e1a3cb832e35df4656e64b3385823d1ffd8ab848.tar.gz
portage-utils-e1a3cb832e35df4656e64b3385823d1ffd8ab848.tar.bz2
portage-utils-e1a3cb832e35df4656e64b3385823d1ffd8ab848.zip
libq/atom: make atom_to_string_r produce BUILD_ID when set
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--libq/atom.c2
1 files changed, 2 insertions, 0 deletions
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",