summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-11-06 14:21:54 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-01 23:53:44 +0100
commitc2320e3c4c99e74d80f029be8ca8c0d06d82d67c (patch)
treee39ab54562c39e7359e8990f448578b92d21ca01 /dgit
parente1835188573be155d122a12fe99bb2ca6e0d4040 (diff)
sbuild:: check that we have the right number of .changes files
Check that the set of .changes files found is as we expect, before calling mergechanges.
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit2
1 files changed, 1 insertions, 1 deletions
diff --git a/dgit b/dgit
index de7ee0c..32eaa2a 100755
--- a/dgit
+++ b/dgit
@@ -3153,7 +3153,7 @@ sub cmd_sbuild {
or $a cmp $b
} @changesfiles;
fail "wrong number of different changes files (@changesfiles)"
- unless @changesfiles;
+ unless @changesfiles==2;
runcmd_ordryrun_local @mergechanges, @changesfiles;
my $multichanges = "${package}_".(stripepoch $version)."_multi.changes";
if (act_local()) {