From: Michael Schroeder Date: Thu, 12 Jul 2018 08:45:35 +0000 (+0200) Subject: Fix handling of deleted keys in repo_search when a keyname is given X-Git-Tag: 0.6.35~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17e3b8f43fd6f176d33c17ebc7d63c9d10739a31;p=thirdparty%2Flibsolv.git Fix handling of deleted keys in repo_search when a keyname is given --- diff --git a/src/repodata.c b/src/repodata.c index 06fb566c..4ab5d188 100644 --- a/src/repodata.c +++ b/src/repodata.c @@ -1016,7 +1016,11 @@ repodata_search(Repodata *data, Id solvid, Id keyname, int flags, int (*callback ddp = get_data(data, key, &dp, *keyp ? 1 : 0); if (key->type == REPOKEY_TYPE_DELETED) - continue; + { + if (onekey) + return; + continue; + } if (key->type == REPOKEY_TYPE_FLEXARRAY || key->type == REPOKEY_TYPE_FIXARRAY) { struct subschema_data subd;