commit:     e275dfedc41cecf51d96484eb34505d12dca5678
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 15 18:27:02 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Sep 15 18:27:02 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=e275dfed

qatom: always display SLOT in verbose mode

URL: https://bugs.gentoo.org/560320

 qatom.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qatom.c b/qatom.c
index 25eee8e..f2c7ae4 100644
--- a/qatom.c
+++ b/qatom.c
@@ -56,8 +56,8 @@ int qatom_main(int argc, char **argv)
                        printf("%s %s %s", atom->CATEGORY, atom->PN, atom->PV);
                        if (verbose || atom->PR_int)
                                printf(" r%i", atom->PR_int);
-                       if (atom->SLOT)
-                               printf(" :%s", atom->SLOT);
+                       if (verbose || atom->SLOT)
+                               printf(" :%s", atom->SLOT ? atom->SLOT : "-");
                        if (verbose || atom->pfx_op != ATOM_OP_NONE)
                                printf(" %s", atom->pfx_op == ATOM_OP_NONE ? 
"-" : atom_op_str[atom->pfx_op]);
                        if (verbose || atom->sfx_op != ATOM_OP_NONE)

Reply via email to