From cc32bbd47c76accbcae1763abc8b9859d6b99d00 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 6 May 2012 21:42:33 -0500 Subject: [PATCH] main: use error codes --- main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 0a1ac27..904f483 100644 --- a/main.c +++ b/main.c @@ -291,7 +291,11 @@ 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, global_traverse_flags); + if (pkg_verify_graph(&world, maximum_traverse_depth, global_traverse_flags) != PKG_ERRF_OK) + { + retval = EXIT_FAILURE; + goto out; + } if (want_uninstalled) {