pkg: if PKGF_SEARCH_PRIVATE is requested, search root::requires_private graph entries too

pull/4/head
William Pitcock 2012-05-02 21:47:02 +00:00
parent 5ea52d4cae
commit 38f3dc78a9
1 changed files with 3 additions and 0 deletions

3
pkg.c
View File

@ -345,6 +345,9 @@ pkg_traverse(pkg_t *root,
pkg_walk_list(root, root->requires, pkg_traverse_func, data, maxdepth - 1, flags); 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) if (pkg_traverse_func != NULL)
pkg_traverse_func(root, data); pkg_traverse_func(root, data);
} }