From: Michael Schroeder Date: Mon, 10 Sep 2018 09:32:39 +0000 (+0200) Subject: repo_search: stringify filenames if requested X-Git-Tag: 0.7.0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fcd39dd2b2448fd06f9379d7d4f3ee269db23e7;p=thirdparty%2Flibsolv.git repo_search: stringify filenames if requested This brings repo_search in sync with what the data iterator code does. --- diff --git a/src/repo.c b/src/repo.c index f08ad38c..7d67bee9 100644 --- a/src/repo.c +++ b/src/repo.c @@ -692,6 +692,12 @@ repo_matchvalue(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValu if (!datamatcher_match(&md->matcher, str)) return 0; } + else + { + /* stringify filelist if requested */ + if (key->name == SOLVABLE_FILELIST && key->type == REPOKEY_TYPE_DIRSTRARRAY && (md->matcher.flags & SEARCH_FILES) != 0) + repodata_stringify(md->pool, data, key, kv, md->flags); + } md->stop = md->callback(md->callback_data, s, data, key, kv); return md->stop; }