commit:     e8d6478d5fb0b5c9d33318fff9387d7cb27620f7
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  2 17:21:21 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Apr  2 17:21:21 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=e8d6478d

qatom_printf: support REPO expansion

 qatom.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/qatom.c b/qatom.c
index b542de8..9e4b40c 100644
--- a/qatom.c
+++ b/qatom.c
@@ -87,6 +87,9 @@ qatom_printf(const char *format, const depend_atom *atom, int 
pverbose)
                                } else if (!strncmp("SLOT", fmt, len)) {
                                        if (showit || atom->SLOT)
                                                printf(":%s", atom->SLOT ? 
atom->SLOT : "-");
+                               } else if (!strncmp("REPO", fmt, len)) {
+                                       if (showit || atom->REPO)
+                                               printf("::%s", HN(atom->REPO));
                                } else if (!strncmp("pfx", fmt, len)) {
                                        if (showit || atom->pfx_op != 
ATOM_OP_NONE)
                                                fputs(atom->pfx_op == 
ATOM_OP_NONE ?

Reply via email to