forked from ariadne/pkgconf
libpkgconf: pkg: ensure the dependency node has a solution associated with it
Sometimes this did not happen, e.g. when using providers as the solution (ref #172).feature/tap-sh
parent
1eb866efb2
commit
0d52339141
|
@ -1261,7 +1261,10 @@ pkgconf_pkg_scan_providers(pkgconf_client_t *client, pkgconf_dependency_t *pkgde
|
||||||
|
|
||||||
pkg = pkgconf_scan_all(client, &ctx, (pkgconf_pkg_iteration_func_t) pkgconf_pkg_scan_provides_entry);
|
pkg = pkgconf_scan_all(client, &ctx, (pkgconf_pkg_iteration_func_t) pkgconf_pkg_scan_provides_entry);
|
||||||
if (pkg != NULL)
|
if (pkg != NULL)
|
||||||
|
{
|
||||||
|
pkgdep->match = pkgconf_pkg_ref(client, pkg);
|
||||||
return pkg;
|
return pkg;
|
||||||
|
}
|
||||||
|
|
||||||
if (eflags != NULL)
|
if (eflags != NULL)
|
||||||
*eflags |= PKGCONF_PKG_ERRF_PACKAGE_NOT_FOUND;
|
*eflags |= PKGCONF_PKG_ERRF_PACKAGE_NOT_FOUND;
|
||||||
|
|
Loading…
Reference in New Issue