BSR: Hotfix - not terminating cpu stat process
authorhyokeun.jeon <hyokeun.jeon@samsung.com>
Mon, 29 Mar 2021 15:24:43 +0000 (00:24 +0900)
committerhyokeun.jeon <hyokeun.jeon@samsung.com>
Mon, 29 Mar 2021 15:24:43 +0000 (00:24 +0900)
debian/changelog
depanneur

index 0d29b9eb8016c78d2d8392f9f9732e07d38c7101..97bba028296454af3b9463cf6d279a3bd326c7d4 100644 (file)
@@ -1,3 +1,10 @@
+depanneur (0.16.10.7) unstable; urgency=high
+
+  * Upgrade to 0.16.10.7
+  * Hotfix for not terinating cpu stats
+
+ -- Hyokeun Jeon <hyokeun.jeon@samsung.com>  Sun, 28 Mar 2021 10:00:00 +0800
+
 depanneur (0.16.10.6) unstable; urgency=high
 
   * Upgrade to 0.16.10.6
index fd4044e84ae83c892d73b540d64492837f51f61f..22c8939a9744da7b5b729ed2a419a15b9d57e13e 100755 (executable)
--- a/depanneur
+++ b/depanneur
@@ -2391,9 +2391,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;
 }
 
 #---------------------------------------------------------------------
@@ -2587,6 +2587,10 @@ sub prepare_preorder_list {
     my_system("rm -rf bsr_profiling_report");
     my_system("rm -rf $localrepo/$dist/$arch/bsr_profiling_report");
 
+    if ($dryrun) {
+        return;
+    }
+
     my @preview_orders = ();
 
     if ($preordered_list ne "") {
@@ -2987,6 +2991,7 @@ if ($noinit == 1 || $incremental == 1) {
         last;
     }
     update_repo();
+    profiling_report();
     build_report();
     exit $ret;
 }
@@ -3185,7 +3190,6 @@ while ((threads->list() > 0)) {
     sleep(1);
 }
 update_repo();
-build_report();
 profiling_report();
+exit build_report();
 
-exit 0