commit: 8b113397cda725a0d94782811913a1a03f5e6d46 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Sat May 16 13:04:04 2020 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Sat May 16 13:04:04 2020 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=8b113397
quse: fix interaction of -R with -D ensure descriptions can be retrieved when -R is in effect Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> quse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quse.c b/quse.c index bcbb620..1e39ce0 100644 --- a/quse.c +++ b/quse.c @@ -141,12 +141,14 @@ quse_search_use_local_desc(int portdirfd, struct quse_state *state) continue; atom->REPO = (char *)state->repo; + atom->SLOT = state->match->SLOT; /* fake match */ if (state->match == NULL || atom_compare(atom, state->match) == EQUAL) { if (state->do_list) { state->retv[i] = xstrdup(q); } else { + atom->SLOT = NULL; /* reset fake slot */ printf("%s[%s%s%s] %s\n", atom_format(state->fmt, atom), MAGENTA, p, NORM, q); @@ -546,6 +548,7 @@ quse_results_cb(tree_pkg_ctx *pkg_ctx, void *priv) .do_describe = false, .do_list = true, .match = atom, + .repo = state->repo, .argc = cnt, .argv = xmalloc(sizeof(char *) * cnt), .retv = xzalloc(sizeof(char *) * cnt),