mirror of
https://github.com/pkgconf/pkgconf.git
synced 2026-01-26 08:07:53 +00:00
libpkgconf: queue: check final solutions for conflicts before returning OK
Otherwise, surfaced conflicts will be detected too late. Closes: https://github.com/pkgconf/pkgconf/issues/436 Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
parent
18e32f2fb6
commit
9cd3629f85
@ -339,6 +339,18 @@ pkgconf_queue_verify(pkgconf_client_t *client, pkgconf_pkg_t *world, pkgconf_lis
|
||||
}
|
||||
}
|
||||
|
||||
if (!(client->flags & PKGCONF_PKG_PKGF_SKIP_CONFLICTS))
|
||||
{
|
||||
PKGCONF_TRACE(client, "checking for conflicts");
|
||||
|
||||
result = pkgconf_pkg_walk_conflicts_list(client, world, &world->conflicts);
|
||||
if (result != PKGCONF_PKG_ERRF_OK)
|
||||
{
|
||||
pkgconf_solution_free(client, &initial_world);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
/* free the initial solution */
|
||||
pkgconf_solution_free(client, &initial_world);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user