From b428eeaacfab623dcd8cdd623ddb6f5f9a89f498 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 18 Jan 2017 11:29:24 -0600 Subject: [PATCH] libpkgconf: remove legacy check to ensure pkgconf_pkg_dir_list_build() is only called once. this is not necessary anymore because: - we do path entry deduplication - it is possible that we want to prime the dir list with some user-specified paths prior to building it --- libpkgconf/pkg.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libpkgconf/pkg.c b/libpkgconf/pkg.c index 03b984a..d49cbe8 100644 --- a/libpkgconf/pkg.c +++ b/libpkgconf/pkg.c @@ -113,9 +113,6 @@ pkg_get_parent_dir(pkgconf_pkg_t *pkg) void pkgconf_pkg_dir_list_build(pkgconf_client_t *client, unsigned int flags) { - if (client->dir_list.head != NULL || client->dir_list.tail != NULL) - return; - pkgconf_path_build_from_environ("PKG_CONFIG_PATH", NULL, &client->dir_list, true); if (!(flags & PKGCONF_PKG_PKGF_ENV_ONLY))