X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit;h=deb77e061e6018d030dee5d1c74799cbf50addca;hp=5bd39e70a84b92086d35041c0f4c4fd64ddb75f7;hb=c753c8249e88196452dd55dbd8a5701dcd4c6740;hpb=c7821c26c30b0a79658b626ee7f2a17f73cdc952 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 <