From: Ian Jackson Date: Sat, 16 Jul 2016 15:59:51 +0000 (+0100) Subject: Quilt mode reporting: Only print warning about quilt once X-Git-Tag: archive/debian/2.0~268 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=f804739f22b6b6ea11aa6dae56b3b70cb36f8280 Quilt mode reporting: Only print warning about quilt once --- diff --git a/dgit b/dgit index 8404a19c..0cdf0bdd 100755 --- a/dgit +++ b/dgit @@ -1850,11 +1850,15 @@ sub get_source_format () { sub madformat ($) { my ($format) = @_; return 0 unless $format eq '3.0 (quilt)'; + our $quilt_mode_warned; if ($quilt_mode eq 'nocheck') { - progress "Not doing any fixup of \`$format' due to --no-quilt-fixup"; + progress "Not doing any fixup of \`$format' due to". + " ----no-quilt-fixup or --quilt=nocheck" + unless $quilt_mode_warned++; return 0; } - progress "Format \`$format', checking/updating patch stack"; + progress "Format \`$format', need to check/update patch stack" + unless $quilt_mode_warned++; return 1; }