When the provided abstract package (e.g. "px5g" provided by "px5g-mbedtls") is
marked as requiring details, then mark the provider abstract package as well.
This ensures that package info for discrete provider packages is acquired and
retained if the virtual package they provide is being depended upon by another
package requiring details.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
provided_abpkg = ensure_abstract_pkg_by_name(item);
+ if (provided_abpkg->state_flag & SF_NEED_DETAIL) {
+ if (!(ab_pkg->state_flag & SF_NEED_DETAIL)) {
+ opkg_msg(DEBUG, "propagating provided abpkg flag to "
+ "provider abpkg %s\n", ab_pkg->name);
+ ab_pkg->state_flag |= SF_NEED_DETAIL;
+ }
+ }
+
if (!abstract_pkg_vec_contains(provided_abpkg->provided_by, ab_pkg))
abstract_pkg_vec_insert(provided_abpkg->provided_by, ab_pkg);