]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh
Add tests for #557006 bug.
[debhelper.git] / dh
diff --git a/dh b/dh
index cd2f9f0870598da3650df0b46241f483757bf88d..bd82d44bd4760e6870618cfa9f99b45c754866a2 100755 (executable)
--- a/dh
+++ b/dh
@@ -225,6 +225,13 @@ init(options => {
 });
 inhibit_log();
 
+# If make is using a jobserver, but it is not available
+# to this process, clean out MAKEFLAGS. This avoids
+# ugly warnings when calling make.
+if (is_make_jobserver_unavailable()) {
+       clean_jobserver_makeflags();
+}
+
 # Definitions of sequences.
 my %sequences;
 $sequences{build} = [qw{