From 27fb6275f124bc30fad9c6eda40d0ba0f3104afe Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Wed, 1 Feb 2006 20:35:31 +0000 Subject: [PATCH] Fixed detection of zero-deps graphs --- graph-includes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph-includes b/graph-includes index 662fbbf..76ed7a7 100644 --- a/graph-includes +++ b/graph-includes @@ -214,7 +214,7 @@ our $stat_nfiles = scalar $project->{ROOTGRAPH}->get_nodes; our $stat_ndeps = sum (map { scalar ($project->{ROOTGRAPH}->get_edges_from($_)) } ($project->{ROOTGRAPH}->get_edge_origins) ); -if (!defined $stat_ndeps) { +if (!defined $stat_ndeps or $stat_ndeps == 0) { print STDERR "$0: found no dependency\n"; exit 0; } -- 2.11.4.GIT