From: Zhang Qiang Date: Fri, 14 Jun 2013 02:13:57 +0000 (+0800) Subject: bugfix: exit unexpectedly if circle exist X-Git-Tag: 0.8~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb8cd57a8d832bba19570b6b5f76195a12ebf81b;p=tools%2Fdepanneur.git bugfix: exit unexpectedly if circle exist - clean %expansion_errors before assign with %tmp_expansion_errors - exist only if @order is empty Change-Id: Ibe99208be4128f1f56e8c291712031f855e3d0eb --- diff --git a/depanneur b/depanneur index 4f954c0..fefbc32 100755 --- a/depanneur +++ b/depanneur @@ -1746,11 +1746,12 @@ while (! $TERM) { # as real expansion_errors, and all packages depend on these packages # can not be blocked. if (@order == 0 && threads->list() == 0 && $dirty == 0) { + %expansion_errors = (); @expansion_errors{keys %tmp_expansion_errors} = values %tmp_expansion_errors; - } - if (scalar(keys %to_build) == @done + @skipped + - scalar(keys %expansion_errors) && !$dirty) { - $TERM = 1; + if (scalar(keys %to_build) == @done + @skipped + + scalar(keys %expansion_errors) && !$dirty) { + $TERM = 1; + } } }