to change for the dgit user.
New checks and improved behaviours:
- * In dgit sbuild, check that the set of .changes files found is as we
- expect, before calling mergechanges, and rename the used-up .changes
- files to `.inmulti' to avoid accidental use of the wrong one (by
- software, or by users).
+ * dgit sbuild: check that the set of .changes files found is as we
+ expect, before calling mergechanges.
+ * dgit sbuild: Rename the used-up .changes files to `.inmulti' to
+ avoid accidental use of the wrong one (by software, or by users).
+ * dgit sbuild: Check that the binary .changes file doesn't contain a
+ .dsc.
Bugfixes:
* When cleaning up after failed clone, stat the to-be-cleaned-up
} @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()) {