lifecycle: return the maximum tree depth for the dependency tree when counting depth

This commit is contained in:
Ariadne Conill 2020-09-09 18:11:10 -06:00
parent 8c8727e30f
commit 258e2e8a52
4 changed files with 18 additions and 6 deletions

View file

@ -290,7 +290,7 @@ ifquery_main(int argc, char *argv[])
return EXIT_FAILURE;
}
if (!lif_lifecycle_count_rdepends(&exec_opts, &collection))
if (lif_lifecycle_count_rdepends(&exec_opts, &collection) == -1)
{
fprintf(stderr, "%s: could not validate dependency tree\n", argv0);
return EXIT_FAILURE;