From: hyokeun.jeon Date: Wed, 14 Apr 2021 09:21:18 +0000 (+0900) Subject: BSR: Gracefully exit X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f749e8e85c53fc70824dd3dd9b36ff680690fce;p=tools%2Fdepanneur.git BSR: Gracefully exit Change-Id: Ieec01bf01c52b8b51f7ab8b89c21ce5473d52c06 --- diff --git a/depanneur b/depanneur index 7ba695c..e1e0da0 100755 --- a/depanneur +++ b/depanneur @@ -2392,9 +2392,9 @@ sub build_report info("build logs can be found in:\n $localrepo/$dist/$arch/logs"); info("build roots located in:\n $scratch_dir.*"); if (%errors || %expansion_errors || @export_errors || ($succeeded_packages == 0 && @skipped == 0)) { - exit 1; + return 1; } - + return 0; } #--------------------------------------------------------------------- @@ -3245,7 +3245,6 @@ while ((threads->list() > 0)) { sleep(1); } update_repo(); -build_report(); +my $build_status = build_report(); profiling_report(); - -exit 0 +exit $build_status