summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-11-06 14:32:03 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-01 23:53:44 +0100
commitadcac7cc282e2683ebdeaee9c53b2d98c0bf8661 (patch)
treea2d5dabffb21dd445183eb7e482b90927848fa34 /dgit
parentbab78c63a571a3e1b9e87acedd7e6ea40c835da2 (diff)
sbuild: Check that the binary .changes file doesn't contain a .dsc.
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit5
1 files changed, 5 insertions, 0 deletions
diff --git a/dgit b/dgit
index a4dea9b..9ac8d54 100755
--- a/dgit
+++ b/dgit
@@ -3154,6 +3154,11 @@ sub cmd_sbuild {
} @changesfiles;
fail "wrong number of different changes files (@changesfiles)"
unless @changesfiles==2;
+ my $binchanges = parsecontrol($changesfiles[1], "binary changes file");
+ foreach my $l (split /\n/, getfield $binchanges, 'Files') {
+ fail "$l found in binaries changes file $binchanges"
+ if $l =~ m/\.dsc$/;
+ }
runcmd_ordryrun_local @mergechanges, @changesfiles;
my $multichanges = "${package}_".(stripepoch $version)."_multi.changes";
if (act_local()) {