From: Ian Jackson Date: Sun, 9 Oct 2016 18:50:16 +0000 (+0100) Subject: dgit: Better error message if non-split-brain patch stack no longer applies X-Git-Tag: archive/debian/2.0~38 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=afee8943fd120d9f99b3a5890cf2625e12815f5d dgit: Better error message if non-split-brain patch stack no longer applies (due to new upstream version, or user messing with it). Closes:#833025. Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index 8c3311a2..f8363904 100644 --- a/debian/changelog +++ b/debian/changelog @@ -44,6 +44,9 @@ dgit (1.5~~) unstable; urgency=medium * New tag format (for dgit view) archive/debian/VERSION. * Before committing to push, check that .dsc and .changes correspond. Closes:#800060. + * Better error message if non-split-brain patch stack no longer + applies (due to new upstream version, or user messing with it). + Closes:#833025. Infrastructure: * Better error handling in dgit-repos-policy-debian. diff --git a/dgit b/dgit index fa926dd0..c1b1c253 100755 --- a/dgit +++ b/dgit @@ -4456,8 +4456,17 @@ sub quilt_fixup_multipatch ($$$) { ensuredir '.pc'; - runcmd qw(sh -ec), - 'exec dpkg-source --before-build . >/dev/null'; + my @bbcmd = (qw(sh -ec), 'exec dpkg-source --before-build . >/dev/null'); + $!=0; $?=-1; + if (system @bbcmd) { + failedcmd @bbcmd if $? < 0; + fail <