pkg_hash: don't suggest incompatible packages
authorPaul Spooren <mail@aparcar.org>
Tue, 27 Oct 2020 02:39:57 +0000 (16:39 -1000)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 30 Oct 2020 00:15:14 +0000 (00:15 +0000)
commit8769c75199b4668878176bde0e5faebf3bc61663
tree56d7b0ed688577a8d43fceb5d58e7bdc4f56ab05
parentcf44c2feb606b60ba3f35392e102c281ef6ea0da
pkg_hash: don't suggest incompatible packages

Up until now opkg would suggest packages with unsatisfied dependencies
as installable candidates. This is a frequent issue for the kmod feed in
snapshot images. In these cases opkg suggest a newer kmod version than
compatible with the installed kernel, because the same package is
available both in the kmods archive and the target specific packages
feed.

This commit fixes the issue by dropping all package problematic
candidates by checking if all their dependencies could be installed.

Signed-off-by: Paul Spooren <mail@aparcar.org>
libopkg/pkg_hash.c