From 3f758a8bae7700a829cc2a4e3559a4ebf3a42f91 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 2 May 2012 23:29:35 +0000 Subject: [PATCH] pkg: pkg_verify_graph() should also accept resolver flags --- main.c | 2 +- pkg.c | 4 ++-- pkg.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 6b95786..e8b8469 100644 --- a/main.c +++ b/main.c @@ -171,7 +171,7 @@ pkg_queue_walk(pkg_queue_t *head) } /* we should verify that the graph is complete before attempting to compute cflags etc. */ - pkg_verify_graph(&world, maximum_traverse_depth); + pkg_verify_graph(&world, maximum_traverse_depth, global_traverse_flags); if (want_digraph) { diff --git a/pkg.c b/pkg.c index 3bdc716..3015523 100644 --- a/pkg.c +++ b/pkg.c @@ -293,9 +293,9 @@ pkg_verify_dependency(pkg_dependency_t *pkgdep, unsigned int flags) * pkg_traverse(). */ void -pkg_verify_graph(pkg_t *root, int depth) +pkg_verify_graph(pkg_t *root, int depth, unsigned int flags) { - pkg_traverse(root, NULL, NULL, depth, PKGF_NONE); + pkg_traverse(root, NULL, NULL, depth, flags); } static inline void diff --git a/pkg.h b/pkg.h index e2e9f8f..cfb2988 100644 --- a/pkg.h +++ b/pkg.h @@ -106,7 +106,7 @@ struct pkg_ { pkg_t *pkg_find(const char *name, unsigned int flags); void pkg_traverse(pkg_t *root, void (*pkg_traverse_func)(pkg_t *package, void *data), void *data, int maxdepth, unsigned int flags); -void pkg_verify_graph(pkg_t *root, int depth); +void pkg_verify_graph(pkg_t *root, int depth, unsigned int flags); int pkg_compare_version(const char *a, const char *b); pkg_t *pkg_verify_dependency(pkg_dependency_t *pkgdep, unsigned int flags); const char *pkg_get_comparator(pkg_dependency_t *pkgdep);