diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-11-06 14:32:03 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-07-01 23:53:44 +0100 |
commit | adcac7cc282e2683ebdeaee9c53b2d98c0bf8661 (patch) | |
tree | a2d5dabffb21dd445183eb7e482b90927848fa34 /dgit | |
parent | bab78c63a571a3e1b9e87acedd7e6ea40c835da2 (diff) |
sbuild: Check that the binary .changes file doesn't contain a .dsc.
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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()) { |