From: Ian Jackson Date: Sun, 22 May 2016 14:27:08 +0000 (+0100) Subject: Do not call "warn" on failure of cleanup handler in END block (since warn has been... X-Git-Tag: archive/debian/2.0~376 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=77eac3a8653b073670f500dbc173aee45577c032 Do not call "warn" on failure of cleanup handler in END block (since warn has been made fatal and aborts the cleanup chain). --- diff --git a/debian/changelog b/debian/changelog index f3a88a2f..4c9e2907 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,8 @@ dgit (1.5~~) unstable; urgency=medium Bugfixes: * When cleaning up after failed clone, stat the to-be-cleaned-up directory before running rmtree on it. Closes:#796773. + * Do not call "warn" on failure of cleanup handler in END block + (since warn has been made fatal and aborts the cleanup chain). Test suite: * When sbuild fails, do not crash due to sed not finding the log diff --git a/dgit b/dgit index 91f43af0..507be273 100755 --- a/dgit +++ b/dgit @@ -155,7 +155,7 @@ END { local ($?); foreach my $f (@end) { eval { $f->(); }; - warn "$us: cleanup: $@" if length $@; + print STDERR "$us: cleanup: $@" if length $@; } };