From 38f3dc78a9ffa2fcff4de52b6111781021bd1ef8 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 2 May 2012 21:47:02 +0000 Subject: [PATCH] pkg: if PKGF_SEARCH_PRIVATE is requested, search root::requires_private graph entries too --- pkg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg.c b/pkg.c index 1e148ed..a5f2edd 100644 --- a/pkg.c +++ b/pkg.c @@ -345,6 +345,9 @@ pkg_traverse(pkg_t *root, pkg_walk_list(root, root->requires, pkg_traverse_func, data, maxdepth - 1, flags); + if (flags & PKGF_SEARCH_PRIVATE) + pkg_walk_list(root, root->requires_private, pkg_traverse_func, data, maxdepth - 1, flags); + if (pkg_traverse_func != NULL) pkg_traverse_func(root, data); }