Fix for uninstalled handling #198

Closed
stoeckmann wants to merge 2 commits from path into master
2 changed files with 3 additions and 2 deletions

View File

@ -533,7 +533,8 @@ pkgconf_pkg_try_specific_path(pkgconf_client_t *client, const char *path, const
{
PKGCONF_TRACE(client, "found (uninstalled): %s", uninst_locbuf);
pkg = pkgconf_pkg_new_from_file(client, uninst_locbuf, f);
pkg->flags |= PKGCONF_PKG_PROPF_UNINSTALLED;
if (pkg != NULL)
pkg->flags |= PKGCONF_PKG_PROPF_UNINSTALLED;
}
else if ((f = fopen(locbuf, "r")) != NULL)
{

View File

@ -104,7 +104,7 @@ the requested modules.
.It Fl -uninstalled
Exit with a non-zero result if the dependency resolver uses an
.Sq uninstalled
module as part of it's solution.
module as part of its solution.
.It Fl -no-uninstalled
Forbids the dependency resolver from considering 'uninstalled' modules as part
of a solution.