diff options
author | 2019-06-19 09:30:44 +0200 | |
---|---|---|
committer | 2019-06-19 09:30:44 +0200 | |
commit | 057ffaead77a168f14861b0cce51c69332ab4ae1 (patch) | |
tree | ae1162c579d83fd8eb5d24b0c467a3300a147255 /qdepends.c | |
parent | tests/qatom: add exact usage from Puppet provider as test (diff) | |
download | portage-utils-057ffaead77a168f14861b0cce51c69332ab4ae1.tar.gz portage-utils-057ffaead77a168f14861b0cce51c69332ab4ae1.tar.bz2 portage-utils-057ffaead77a168f14861b0cce51c69332ab4ae1.zip |
qdepends: make -qq with -Q just print list of packages
Bug: https://bugs.gentoo.org/683430
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qdepends.c')
-rw-r--r-- | qdepends.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -251,13 +251,15 @@ qdepends_results_cb(tree_pkg_ctx *pkg_ctx, void *priv) if (!firstmatch) { datom = tree_get_atom(pkg_ctx, true); - printf("%s:", atom_format(state->format, datom)); + printf("%s%s", atom_format(state->format, datom), + quiet < 2 ? ":" : ""); } firstmatch = true; snprintf(buf, sizeof(buf), "%s%s%s", RED, atom_to_string(atom), NORM); - add_set_unique(buf, state->udeps, NULL); + if (quiet < 2) + add_set_unique(buf, state->udeps, NULL); } else if (!quiet) { add_set_unique(atom_to_string(atom), state->udeps, NULL); |