main: use error codes

pull/15/head
William Pitcock 2012-05-06 21:42:33 -05:00
parent 4f50dad147
commit cc32bbd47c
1 changed files with 5 additions and 1 deletions

6
main.c
View File

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