main: also enable --pure with the PKG_CONFIG_PURE_DEPGRAPH env variable (#83)

feature/tap-sh
William Pitcock 2016-11-15 22:30:04 -06:00
parent ec10dd8edb
commit 8ecf7c186b
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -799,7 +799,7 @@ main(int argc, char *argv[])
* this allows for a --static which searches private modules, but has the same fragment behaviour as if * this allows for a --static which searches private modules, but has the same fragment behaviour as if
* --static were disabled. see <https://github.com/pkgconf/pkgconf/issues/83> for rationale. * --static were disabled. see <https://github.com/pkgconf/pkgconf/issues/83> for rationale.
*/ */
if ((want_flags & PKG_PURE) == PKG_PURE) if ((want_flags & PKG_PURE) == PKG_PURE || getenv("PKG_CONFIG_PURE_DEPGRAPH") != NULL)
global_traverse_flags &= ~PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS; global_traverse_flags &= ~PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS;
if ((want_flags & PKG_ENV_ONLY) == PKG_ENV_ONLY) if ((want_flags & PKG_ENV_ONLY) == PKG_ENV_ONLY)