main: do not evaluate module paths for modules that are not really on disk (closes #158)

pull/164/head
William Pitcock 2017-12-02 21:14:09 -06:00
parent b52d3819a2
commit b6a56c8728
1 changed files with 4 additions and 1 deletions

3
main.c
View File

@ -327,6 +327,9 @@ apply_path(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int max
pkgconf_dependency_t *dep = iter->data; pkgconf_dependency_t *dep = iter->data;
pkg = pkgconf_pkg_verify_dependency(client, dep, NULL); pkg = pkgconf_pkg_verify_dependency(client, dep, NULL);
/* a module entry with no filename is either virtual, static (builtin) or synthesized. */
if (pkg->filename != NULL)
printf("%s\n", pkg->filename); printf("%s\n", pkg->filename);
pkgconf_pkg_free(&pkg_client, pkg); pkgconf_pkg_free(&pkg_client, pkg);