From c753c8249e88196452dd55dbd8a5701dcd4c6740 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 16 Oct 2016 12:12:04 +0100 Subject: [PATCH] dgit: Improve two error messages relating to .changes handling and sbuild Signed-off-by: Ian Jackson --- dgit | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 <