]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Change lookup/search code that it returns the match from the last repodata
authorMichael Schroeder <mls@suse.de>
Mon, 10 Sep 2018 09:38:19 +0000 (11:38 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 10 Sep 2018 09:38:19 +0000 (11:38 +0200)
commit49658f86639dafda236c75b5fbf448c8ddf63a3d
tree76907b2a2386042e5f455c2a1e573b7a2edbeda4
parent9fcd39dd2b2448fd06f9379d7d4f3ee269db23e7
Change lookup/search code that it returns the match from the last repodata

This is the first part of fixing a longstanding bug. This fixes
the lookup cases and the case where a keyname is provided in the
search/iterator.

We do this by adding a repo_lookup_repodata function that returns the
last repodata that has the specified keyname.

There is also a repo_lookup_repodata_opt function that may return
a repodata that does not contain the keyname instead of NULL. This
is a bit faster if you need to do a lookup anyway.

We also now have a repo_lookup_filelist_repodata that contains all
the logic to deal with filtered filelists.
src/repo.c
src/repo.h
src/repodata.c