From 8ecf7c186b4afb14e4f8be301d6ef6befb34c5d4 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 15 Nov 2016 22:30:04 -0600 Subject: [PATCH] main: also enable --pure with the PKG_CONFIG_PURE_DEPGRAPH env variable (#83) --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 122c780..2b3eb69 100644 --- a/main.c +++ b/main.c @@ -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 * --static were disabled. see 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; if ((want_flags & PKG_ENV_ONLY) == PKG_ENV_ONLY)