From: Ian Jackson Date: Sun, 16 Oct 2016 11:12:04 +0000 (+0100) Subject: dgit: Improve two error messages relating to .changes handling and sbuild X-Git-Tag: archive/debian/2.0~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c753c8249e88196452dd55dbd8a5701dcd4c6740;p=dgit.git dgit: Improve two error messages relating to .changes handling and sbuild Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index 5bd39e70..deb77e06 100755 --- a/dgit +++ b/dgit @@ -4938,9 +4938,10 @@ sub cmd_sbuild { if (!$rmchanges) { my @unwanted = map { s#^\.\./##; $_; } glob "../$pat"; @unwanted = grep { $_ ne changespat $version,'source' } @unwanted; - fail "changes files other than source matching $pat". - " already present (@unwanted);". - " building would result in ambiguity about the intended results" + fail < $a =~ m/_source\.changes$/) or $a cmp $b } @changesfiles; + fail <