[debhelper-devel] [debhelper] 01/01: PROGRAMMING: Document error handling in parallel runs

Niels Thykier nthykier at moszumanska.debian.org
Sat Jun 24 13:13:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit e8f95e5183c34809d991eacb546fff26400afb4a
Author: Niels Thykier <niels at thykier.net>
Date:   Sat Jun 24 13:12:41 2017 +0000

    PROGRAMMING: Document error handling in parallel runs
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 doc/PROGRAMMING | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING
index 5d1b622..43f68c6 100644
--- a/doc/PROGRAMMING
+++ b/doc/PROGRAMMING
@@ -377,6 +377,10 @@ on_selected_pkgs_in_parallel($pkg_list_ref, $code)
 			}
 		 });
 
+	If there is an error, which should stop the build, please invoke
+	either "error()" or "error_exitcode".  Alternatively, a trappable
+	error (e.g. "die($msg)") can also be used.
+
 	Keep in mind that the sub will always be run in a subprocess,
 	so it cannot update global state.
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list