1 |
commit: e1a3cb832e35df4656e64b3385823d1ffd8ab848 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 20 17:14:54 2022 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 20 17:14:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=e1a3cb83 |
7 |
|
8 |
libq/atom: make atom_to_string_r produce BUILD_ID when set |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
libq/atom.c | 2 ++ |
13 |
1 file changed, 2 insertions(+) |
14 |
|
15 |
diff --git a/libq/atom.c b/libq/atom.c |
16 |
index 3d9d31f..50e9520 100644 |
17 |
--- a/libq/atom.c |
18 |
+++ b/libq/atom.c |
19 |
@@ -1015,6 +1015,8 @@ atom_to_string_r(char *buf, size_t buflen, depend_atom *a) |
20 |
off += snprintf(buf + off, buflen - off, "-%s", a->PV); |
21 |
if (a->PR_int > 0) |
22 |
off += snprintf(buf + off, buflen - off, "-r%d", a->PR_int); |
23 |
+ if (a->BUILDID > 0) |
24 |
+ off += snprintf(buf + off, buflen - off, "~%u", a->BUILDID); |
25 |
off += snprintf(buf + off, buflen - off, "%s", atom_op_str[a->sfx_op]); |
26 |
if (a->SLOT != NULL || a->slotdep != ATOM_SD_NONE) |
27 |
off += snprintf(buf + off, buflen - off, ":%s%s%s%s", |