]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Bring repodata_lookup_num in sync with repo_lookup_num
authorMichael Schroeder <mls@suse.de>
Wed, 19 Sep 2018 11:30:42 +0000 (13:30 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 19 Sep 2018 11:35:00 +0000 (13:35 +0200)
commitc1a371bd53664893c055db4634a7a02705a8acca
treed8afbb96a11c2b685e331189734adeb84a9dcde9
parente00c3cf565274d130d53dc7abd6be49194afdc44
Bring repodata_lookup_num in sync with repo_lookup_num

It used to return a boolean if the num was found and write
the num over a pointer. This was done because repo_lookup_num
needed to iterate over all repodatas and thus needed to know
if the keyname existed or not.

Nowadays we use repo_lookup_repodata_opt to find the correct
repodata, so we do no longer need the boolean return value.
So we can make repodata_lookup_num work like repo_lookup_num.

This is an INCOMPATIBLE API CHANGE but I'm pretty sure nobody
uses repodate_lookup_num, so this should not hurt anybody.

(You can use a call to repodata_lookup_type to check if the
repodata really contains the num in case the "notfound" value
is returned.)
bindings/solv.i
src/repo.c
src/repodata.c
src/repodata.h