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
William Pitcock 2018-02-08 14:25:47 -06:00
parent 1eb866efb2
commit 0d52339141
1 changed files with 3 additions and 0 deletions

View File

@ -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);
if (pkg != NULL)
{
pkgdep->match = pkgconf_pkg_ref(client, pkg);
return pkg;
}
if (eflags != NULL)
*eflags |= PKGCONF_PKG_ERRF_PACKAGE_NOT_FOUND;