From 0d5233914167b55c09fd248b3eb6ed5d42e7f0c7 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 8 Feb 2018 14:25:47 -0600 Subject: [PATCH] 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). --- libpkgconf/pkg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libpkgconf/pkg.c b/libpkgconf/pkg.c index db168b0..0feb4d6 100644 --- a/libpkgconf/pkg.c +++ b/libpkgconf/pkg.c @@ -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;