libopkg: pkg_hash: prefer to-be-installed packages
authorDaniel Golle <daniel@makrotopia.org>
Sun, 9 Jan 2022 19:52:40 +0000 (19:52 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 9 Jan 2022 19:59:00 +0000 (19:59 +0000)
commitdb7fb64d9ce196916f36c9b5316c99694d531d32
tree3d816515c5820fcde44305a7558e7e9d862e0b71
parent1bf042dd06751b693a8544d2317e5b969d666b69
libopkg: pkg_hash: prefer to-be-installed packages

Increase PROVIDES candidate score also in case the package name matches
a to-be-installed package listed.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libopkg/opkg_cmd.c
libopkg/opkg_cmd.h
libopkg/pkg_hash.c