]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix handling of deleted keys in repo_search when a keyname is given
authorMichael Schroeder <mls@suse.de>
Thu, 12 Jul 2018 08:45:35 +0000 (10:45 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 12 Jul 2018 08:45:35 +0000 (10:45 +0200)
src/repodata.c

index 06fb566c0406ecd95b7b7518fc0dd2ea5fff95ef..4ab5d188bf39d9ce1135e92d46aeac478f83611a 100644 (file)
@@ -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;