pkg: pkg_verify_graph() should also accept resolver flags

pull/4/head
William Pitcock 2012-05-02 23:29:35 +00:00
parent 84aa1c11f1
commit 3f758a8bae
3 changed files with 4 additions and 4 deletions

2
main.c
View File

@ -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. */ /* 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) if (want_digraph)
{ {

4
pkg.c
View File

@ -293,9 +293,9 @@ pkg_verify_dependency(pkg_dependency_t *pkgdep, unsigned int flags)
* pkg_traverse(). * pkg_traverse().
*/ */
void 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 static inline void

2
pkg.h
View File

@ -106,7 +106,7 @@ struct pkg_ {
pkg_t *pkg_find(const char *name, unsigned int flags); 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_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); int pkg_compare_version(const char *a, const char *b);
pkg_t *pkg_verify_dependency(pkg_dependency_t *pkgdep, unsigned int flags); pkg_t *pkg_verify_dependency(pkg_dependency_t *pkgdep, unsigned int flags);
const char *pkg_get_comparator(pkg_dependency_t *pkgdep); const char *pkg_get_comparator(pkg_dependency_t *pkgdep);